* [PATCH] fs/super.c: Fix cast of 0 to pointer.
@ 2009-04-14 13:48 Ben Dooks
0 siblings, 0 replies; only message in thread
From: Ben Dooks @ 2009-04-14 13:48 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-fsdevel, viro, Ben Dooks
Fix the following warning in fs/super.c:
900:19: warning: Using plain integer as NULL pointer.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
---
fs/super.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/super.c b/fs/super.c
index 786fe7d..14e59bc 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -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);
--
1.5.6.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-14 13:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-14 13:48 [PATCH] fs/super.c: Fix cast of 0 to pointer Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).