Skip to content
Snippets Groups Projects
Commit ba6f867f authored by Qi Yong's avatar Qi Yong Committed by Linus Torvalds
Browse files

kill an unused PTR_ERR in bdev_cache_init()

parent 91f3f1e3
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment