From: Qi Yong Date: Wed, 6 Feb 2008 09:37:23 +0000 (-0800) Subject: kill an unused PTR_ERR in bdev_cache_init() X-Git-Tag: v2.6.25-rc1~708 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ba6f867f114760d4e43f0f93abe280ee0a0d696e;p=linux-2.6-omap-h63xx.git kill an unused PTR_ERR in bdev_cache_init() Signed-off-by: Qi Yong Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/block_dev.c b/fs/block_dev.c index e48a630ae26..e63067d25cd 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 */