Commit f9a018e8 authored by Yang Li's avatar Yang Li Committed by Jens Axboe
Browse files

bcache: use NULL instead of using plain integer as pointer



This fixes the following sparse warnings:
drivers/md/bcache/features.c:22:16: warning: Using plain integer as NULL
pointer

Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarYang Li <yang.lee@linux.alibaba.com>
Signed-off-by: default avatarColy Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20210411134316.80274-4-colyli@suse.de


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 11e9560e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)				\