Whamcloud - gitweb
LU-6142 lod: remove unnecessary variables 66/41766/3
authorMr NeilBrown <neilb@suse.de>
Thu, 17 Dec 2020 23:18:48 +0000 (10:18 +1100)
committerOleg Drokin <green@whamcloud.com>
Wed, 10 Mar 2021 08:02:11 +0000 (08:02 +0000)
commit0d2fb010279e1ac5e2c0f2c97b0ccb9ba27c4c51
tree2c6b04f03304a344b635cc395971328675baa2de
parent380829cbe68017a012d1f135419762924323f4f9
LU-6142 lod: remove unnecessary variables

Both lprocfs_register() and dt_tunables_init() treat a NULL pointer as
being equivalent to an empty array.

So discard the empty arrays and use the NULL pointer.

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I620fbf1c771ee80d2ddff0f38a87c2f08bae0e4d
Reviewed-on: https://review.whamcloud.com/41766
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/lod/lproc_lod.c