mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-12 13:34:10 +08:00
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: 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>
This commit is contained in:
parent
11e9560e6c
commit
f9a018e8a6
@ -19,7 +19,7 @@ struct feature {
|
|||||||
static struct feature feature_list[] = {
|
static struct feature feature_list[] = {
|
||||||
{BCH_FEATURE_INCOMPAT, BCH_FEATURE_INCOMPAT_LOG_LARGE_BUCKET_SIZE,
|
{BCH_FEATURE_INCOMPAT, BCH_FEATURE_INCOMPAT_LOG_LARGE_BUCKET_SIZE,
|
||||||
"large_bucket"},
|
"large_bucket"},
|
||||||
{0, 0, 0 },
|
{0, 0, NULL },
|
||||||
};
|
};
|
||||||
|
|
||||||
#define compose_feature_string(type) \
|
#define compose_feature_string(type) \
|
||||||
|
Loading…
Reference in New Issue
Block a user