mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
unregister_blkdev() delete redundant messages in callers
No need to warn unregister_blkdev() failure by the callers. (The previous patch makes unregister_blkdev() print error message in error case) Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
294462a5c6
commit
00d59405cf
5 changed files with 5 additions and 16 deletions
|
|
@ -619,8 +619,7 @@ static void __exit jsflash_cleanup_module(void)
|
|||
jsf0.busy = 0;
|
||||
|
||||
misc_deregister(&jsf_dev);
|
||||
if (unregister_blkdev(JSFD_MAJOR, "jsfd") != 0)
|
||||
printk("jsfd: cleanup_module failed\n");
|
||||
unregister_blkdev(JSFD_MAJOR, "jsfd");
|
||||
blk_cleanup_queue(jsf_queue);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue