unregister_blkdev(): delete redundant message
Akinobu Mita [Tue, 17 Jul 2007 11:03:46 +0000 (04:03 -0700)]
No need to warn unregister_blkdev() failure by caller.  (The previous patch
makes unregister_blkdev() print error message in error case)

Acked-by: Grant Likely <grant.likely@secretlab.ca>
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>

drivers/block/xsysace.c

index 1cddfff..732ec63 100644 (file)
@@ -1157,9 +1157,7 @@ static void __exit ace_exit(void)
 {
        pr_debug("Unregistering Xilinx SystemACE driver\n");
        driver_unregister(&ace_driver);
-       if (unregister_blkdev(ace_major, "xsysace"))
-               printk(KERN_WARNING "systemace unregister_blkdev(%i) failed\n",
-                      ace_major);
+       unregister_blkdev(ace_major, "xsysace");
 }
 
 module_init(ace_init);