summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrii <tulup@mail.ru>2017-12-06 11:33:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-06 15:56:47 +0100
commit6e6e26f91b04b83df9b0fe4e1fb08285b121fc0f (patch)
tree85b5ea095c180e0914a731a5328cab909e5cb51e
parente8cd29b774ddd28bfe6d693c82241e294dc91e09 (diff)
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>
-rw-r--r--drivers/staging/lustre/lustre/lov/lov_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/lov/lov_object.c b/drivers/staging/lustre/lustre/lov/lov_object.c
index 105b707eed14..897cf2cd4a24 100644
--- a/drivers/staging/lustre/lustre/lov/lov_object.c
+++ b/drivers/staging/lustre/lustre/lov/lov_object.c
@@ -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)