projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8cd29b
)
staging: lustre: Fix sparse, using plain integer as NULL pointer in lov_object_fiemap()
author
Andrii
<tulup@mail.ru>
Wed, 6 Dec 2017 09:33:10 +0000
(11:33 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 6 Dec 2017 14:56:47 +0000
(15:56 +0100)
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>
drivers/staging/lustre/lustre/lov/lov_object.c
patch
|
blob
|
history
diff --git
a/drivers/staging/lustre/lustre/lov/lov_object.c
b/drivers/staging/lustre/lustre/lov/lov_object.c
index 105b707eed148ca6541fd89b618da22a3c83aac9..897cf2cd4a244e28e4532ad6025ffbef5e2bdb6d 100644
(file)
--- 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)