Skip to content

Commit

Permalink
kill an unused PTR_ERR in bdev_cache_init()
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Yong <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Qi Yong authored and Linus Torvalds committed Feb 6, 2008
1 parent 91f3f1e commit ba6f867
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/block_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit ba6f867

Please sign in to comment.