Skip to content

Commit

Permalink
unregister_blkdev(): delete redundant message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Jul 17, 2007
1 parent 00d5940 commit c6d4d63
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/block/xsysace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c6d4d63

Please sign in to comment.