unregister_blkdev() delete redundant messages in callers
No need to warn unregister_blkdev() failure by the callers. (The previous patch makes unregister_blkdev() print error message in error case) Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
294462a5c6
commit
00d59405cf
@@ -1568,8 +1568,7 @@ static void __exit loop_exit(void)
|
||||
loop_del_one(lo);
|
||||
|
||||
blk_unregister_region(MKDEV(LOOP_MAJOR, 0), range);
|
||||
if (unregister_blkdev(LOOP_MAJOR, "loop"))
|
||||
printk(KERN_WARNING "loop: cannot unregister blkdev\n");
|
||||
unregister_blkdev(LOOP_MAJOR, "loop");
|
||||
}
|
||||
|
||||
module_init(loop_init);
|
||||
|
||||
Reference in New Issue
Block a user