No need to warn unregister_blkdev() failure by caller.Acked-by: Grant Likely <grant.likely@xxxxxxxxxxxx>
(The previous patch makes unregister_blkdev() print error message in
error case)
Cc: Grant Likely <grant.likely@xxxxxxxxxxxx>
Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx>
---
drivers/block/xsysace.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
Index: 2.6-mm/drivers/block/xsysace.c
===================================================================
--- 2.6-mm.orig/drivers/block/xsysace.c
+++ 2.6-mm/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);