Skip to contentSkip to conversation

kill an unused PTR_ERR in bdev_cache_init

PATCH New Qi Yong 1 participant 1 message Dec 3, 2007

Subsystems (2)
lore
Share & tools
lore

Qi Yong

author
#0 lore raw

PATCH 1/1 kill an unused PTR_ERR in bdev_cache_init

Kill an old unused PTR_ERR in bdev_cache_init().

fs/block_dev.c +0 -1
index 993f78c..b5fa625 100644
@@ -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 */
Signature · 1 line
Qi Yong