bcache: use NULL instead of using plain integer as pointer
authorYang Li <yang.lee@linux.alibaba.com>
Sun, 11 Apr 2021 13:43:12 +0000 (21:43 +0800)
committerJens Axboe <axboe@kernel.dk>
Sun, 11 Apr 2021 14:37:56 +0000 (08:37 -0600)
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>
drivers/md/bcache/features.c

index d636b7b..6d2b7b8 100644 (file)
@@ -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)                           \