diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2007-07-19 04:47:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 13:04:43 -0400 |
commit | 68fc4fabca897a09f75f53bac14cdc7a98f52210 (patch) | |
tree | c010fa0d091a543a966aad82926d0fb5c2831f1f /drivers/char/mbcs.c | |
parent | cb00ea3528eb3c09eae9871d6e7d038776e952e2 (diff) |
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>
Diffstat (limited to 'drivers/char/mbcs.c')
-rw-r--r-- | drivers/char/mbcs.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/char/mbcs.c b/drivers/char/mbcs.c index 57f9115a456c..3daf5e0a27e1 100644 --- a/drivers/char/mbcs.c +++ b/drivers/char/mbcs.c | |||
@@ -816,12 +816,7 @@ struct cx_drv mbcs_driver = { | |||
816 | 816 | ||
817 | static void __exit mbcs_exit(void) | 817 | static void __exit mbcs_exit(void) |
818 | { | 818 | { |
819 | int rv; | 819 | unregister_chrdev(mbcs_major, DEVICE_NAME); |
820 | |||
821 | rv = unregister_chrdev(mbcs_major, DEVICE_NAME); | ||
822 | if (rv < 0) | ||
823 | DBG(KERN_ALERT "Error in unregister_chrdev: %d\n", rv); | ||
824 | |||
825 | cx_driver_unregister(&mbcs_driver); | 820 | cx_driver_unregister(&mbcs_driver); |
826 | } | 821 | } |
827 | 822 | ||