diff options
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 | ||