mirror of https://gitee.com/openkylin/linux.git
kill an unused PTR_ERR in bdev_cache_init()
Signed-off-by: Qi Yong <qiyong@fc-cn.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
91f3f1e304
commit
ba6f867f11
|
@ -534,7 +534,6 @@ void __init bdev_cache_init(void)
|
||||||
if (err)
|
if (err)
|
||||||
panic("Cannot register bdev pseudo-fs");
|
panic("Cannot register bdev pseudo-fs");
|
||||||
bd_mnt = kern_mount(&bd_type);
|
bd_mnt = kern_mount(&bd_type);
|
||||||
err = PTR_ERR(bd_mnt);
|
|
||||||
if (IS_ERR(bd_mnt))
|
if (IS_ERR(bd_mnt))
|
||||||
panic("Cannot create bdev pseudo-fs");
|
panic("Cannot create bdev pseudo-fs");
|
||||||
blockdev_superblock = bd_mnt->mnt_sb; /* For writeback */
|
blockdev_superblock = bd_mnt->mnt_sb; /* For writeback */
|
||||||
|
|
Loading…
Reference in New Issue