Skip to contentSkip to conversation

fs/super.c: Fix cast of 0 to pointer.

PATCH New Ben Dooks 1 participant 1 message Apr 14, 2009 VFS

lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 fs/super.c: Fix cast of 0 to pointer.

Fix the following warning in fs/super.c:

900:19: warning: Using plain integer as NULL pointer.

---
 fs/super.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/super.c +1 -1
index 786fe7d..14e59bc 100644
@@ -897,7 +897,7 @@ void kill_block_super(struct super_block *sb)
 	struct block_device *bdev = sb->s_bdev;
 	fmode_t mode = sb->s_mode;
 
-	bdev->bd_super = 0;
+	bdev->bd_super = NULL;
 	generic_shutdown_super(sb);
 	sync_blockdev(bdev);
 	close_bdev_exclusive(bdev, mode);
Signature · 1 line
1.5.6.5