projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bad8721
)
crush: fix using plain integer as NULL warning
author
YueHaibing
<yuehaibing@huawei.com>
Wed, 8 Aug 2018 11:52:57 +0000
(19:52 +0800)
committer
Ilya Dryomov
<idryomov@gmail.com>
Mon, 13 Aug 2018 15:55:44 +0000
(17:55 +0200)
Fixes the following sparse warnings:
net/ceph/crush/mapper.c:517:76: warning: Using plain integer as NULL pointer
net/ceph/crush/mapper.c:728:68: warning: Using plain integer as NULL pointer
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/crush/mapper.c
patch
|
blob
|
history
diff --git
a/net/ceph/crush/mapper.c
b/net/ceph/crush/mapper.c
index
417df67
..
3f323ed
100644
(file)
--- a/
net/ceph/crush/mapper.c
+++ b/
net/ceph/crush/mapper.c
@@
-514,7
+514,7
@@
static int crush_choose_firstn(const struct crush_map *map,
in, work->work[-1-in->id],
x, r,
(choose_args ?
- &choose_args[-1-in->id] :
0
),
+ &choose_args[-1-in->id] :
NULL
),
outpos);
if (item >= map->max_devices) {
dprintk(" bad item %d\n", item);
@@
-725,7
+725,7
@@
static void crush_choose_indep(const struct crush_map *map,
in, work->work[-1-in->id],
x, r,
(choose_args ?
- &choose_args[-1-in->id] :
0
),
+ &choose_args[-1-in->id] :
NULL
),
outpos);
if (item >= map->max_devices) {
dprintk(" bad item %d\n", item);