mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
staging: lustre: Fix sparse, using plain integer as NULL pointer in lov_object_fiemap()
Change 0 to NULL in lov_object_fiemap() in order to fix warning produced by sparse Signed-off-by: Andrii Vladyka <tulup@mail.ru> Signed-off-by: Andreas Dilger <andreas.dilger@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e8cd29b774
commit
6e6e26f91b
1 changed files with 1 additions and 1 deletions
|
@ -1335,7 +1335,7 @@ static int lov_object_fiemap(const struct lu_env *env, struct cl_object *obj,
|
|||
int rc = 0;
|
||||
int cur_stripe;
|
||||
int stripe_count;
|
||||
struct fiemap_state fs = { 0 };
|
||||
struct fiemap_state fs = { NULL };
|
||||
|
||||
lsm = lov_lsm_addref(cl2lov(obj));
|
||||
if (!lsm)
|
||||
|
|
Loading…
Reference in a new issue