unregister_chrdev(): ignore the return value
unregister_chrdev() always returns 0. There is no need to check the return value. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Takashi Iwai <tiwai@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
このコミットが含まれているのは:
@@ -425,9 +425,7 @@ cleanup_module(void)
|
||||
printk(KERN_ERR "IP2: failed to unregister tty driver (%d)\n", err);
|
||||
}
|
||||
put_tty_driver(ip2_tty_driver);
|
||||
if ( ( err = unregister_chrdev ( IP2_IPL_MAJOR, pcIpl ) ) ) {
|
||||
printk(KERN_ERR "IP2: failed to unregister IPL driver (%d)\n", err);
|
||||
}
|
||||
unregister_chrdev(IP2_IPL_MAJOR, pcIpl);
|
||||
remove_proc_entry("ip2mem", &proc_root);
|
||||
|
||||
// free memory
|
||||
|
新しいイシューから参照
ユーザーをブロックする