[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <BD79186B4FD85F4B8E60E381CAEE1909016C1B15@mi8nycmail19.Mi8.com>
Date: Wed, 29 Apr 2009 20:14:57 -0400
From: "H Hartley Sweeten" <hartleys@...ionengravers.com>
To: <linux-kernel@...r.kernel.org>
Subject: [PATCH] fs/super.c: fix sparse warning
Sparse reports the following in fs/super.c:
warning: Using plain integer as NULL pointer
Signed-off-by: H Hartley Sweeten <hsweeten@...ionengravers.com>
Cc: Subrata Modak <subrata@...ux.vnet.ibm.com>
---
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);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists