From c6d4d63489f2e3ce38c80e7073952f0c58d4c2bc Mon Sep 17 00:00:00 2001 From: Akinobu Mita Date: Tue, 17 Jul 2007 04:03:46 -0700 Subject: [PATCH] unregister_blkdev(): delete redundant message 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 Signed-off-by: Akinobu Mita Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/block/xsysace.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/block/xsysace.c b/drivers/block/xsysace.c index 1cddfff9ae..732ec63b6e 100644 --- a/drivers/block/xsysace.c +++ b/drivers/block/xsysace.c @@ -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); -- 2.39.5