2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-19 08:05:27 +08:00

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 <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>
This commit is contained in:
Akinobu Mita 2007-07-17 04:03:46 -07:00 committed by Linus Torvalds
parent 00d59405cf
commit c6d4d63489

View 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);