* [patch] kill an unused PTR_ERR in bdev_cache_init
@ 2007-11-30 9:08 Qi Yong
0 siblings, 0 replies; only message in thread
From: Qi Yong @ 2007-11-30 9:08 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 514 bytes --]
Kill an old unused PTR_ERR in bdev_cache_init().
Signed-off-by: Qi Yong <qiyong@fc-cn.com>
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 993f78c..b5fa625 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -534,7 +534,6 @@ void __init bdev_cache_init(void)
if (err)
panic("Cannot register bdev pseudo-fs");
bd_mnt = kern_mount(&bd_type);
- err = PTR_ERR(bd_mnt);
if (IS_ERR(bd_mnt))
panic("Cannot create bdev pseudo-fs");
blockdev_superblock = bd_mnt->mnt_sb; /* For writeback */
--
Qi Yong
[-- Attachment #2: bdev_cache_init-kill-unused.diff --]
[-- Type: text/x-diff, Size: 408 bytes --]
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 993f78c..b5fa625 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -534,7 +534,6 @@ void __init bdev_cache_init(void)
if (err)
panic("Cannot register bdev pseudo-fs");
bd_mnt = kern_mount(&bd_type);
- err = PTR_ERR(bd_mnt);
if (IS_ERR(bd_mnt))
panic("Cannot create bdev pseudo-fs");
blockdev_superblock = bd_mnt->mnt_sb; /* For writeback */
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-30 9:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-30 9:08 [patch] kill an unused PTR_ERR in bdev_cache_init Qi Yong
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).