From: Yang Li Date: Sun, 11 Apr 2021 13:43:12 +0000 (+0800) Subject: bcache: use NULL instead of using plain integer as pointer X-Git-Tag: Ubuntu-5.13.0-19.19~3433^2~46 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=f9a018e8a6af2898dc782f6e526bd11f6f352e87;p=mirror_ubuntu-jammy-kernel.git 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 Signed-off-by: Yang Li Signed-off-by: Coly Li Link: https://lore.kernel.org/r/20210411134316.80274-4-colyli@suse.de Signed-off-by: Jens Axboe --- diff --git a/drivers/md/bcache/features.c b/drivers/md/bcache/features.c index d636b7b2d070..6d2b7b84a7b7 100644 --- a/drivers/md/bcache/features.c +++ b/drivers/md/bcache/features.c @@ -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) \