Skip to contentSkip to conversation

bcache: use NULL instead of using plain integer as pointer

PATCH New Yang Li 1 participant 1 message Mar 16, 2021 bcache (block layer cache)

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 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

---
 drivers/md/bcache/features.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/bcache/features.c +1 -1
index d636b7b..6d2b7b8 100644
@@ -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)				\
Signature · 1 line
1.8.3.1