Skip to content

Commit

Permalink
bcache: use NULL instead of using plain integer as pointer
Browse files Browse the repository at this point in the history
This fixes the following sparse warnings:
drivers/md/bcache/features.c:22:16: warning: Using plain integer as NULL
pointer

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20210411134316.80274-4-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Yang Li authored and Jens Axboe committed Apr 11, 2021
1 parent 11e9560 commit f9a018e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/bcache/features.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ struct feature {
static struct feature feature_list[] = {
{BCH_FEATURE_INCOMPAT, BCH_FEATURE_INCOMPAT_LOG_LARGE_BUCKET_SIZE,
"large_bucket"},
{0, 0, 0 },
{0, 0, NULL },
};

#define compose_feature_string(type) \
Expand Down

0 comments on commit f9a018e

Please sign in to comment.