aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/loop.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2007-07-17 07:03:46 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-17 13:23:03 -0400
commit00d59405cf6d7ef8932394ab5a12da1a50ce581e (patch)
treeccd0c170b673a17792207b2b5816978bb27da436 /drivers/block/loop.c
parent294462a5c6c4fb9a6ced9cb5a368ff335f1b656e (diff)
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>
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r--drivers/block/loop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 06eaa11cbc2f..e425daa1eac3 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -1568,8 +1568,7 @@ static void __exit loop_exit(void)
1568 loop_del_one(lo); 1568 loop_del_one(lo);
1569 1569
1570 blk_unregister_region(MKDEV(LOOP_MAJOR, 0), range); 1570 blk_unregister_region(MKDEV(LOOP_MAJOR, 0), range);
1571 if (unregister_blkdev(LOOP_MAJOR, "loop")) 1571 unregister_blkdev(LOOP_MAJOR, "loop");
1572 printk(KERN_WARNING "loop: cannot unregister blkdev\n");
1573} 1572}
1574 1573
1575module_init(loop_init); 1574module_init(loop_init);