diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2007-07-19 08:47:50 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-19 17:04:43 (GMT) |
commit | 68fc4fabca897a09f75f53bac14cdc7a98f52210 (patch) | |
tree | c010fa0d091a543a966aad82926d0fb5c2831f1f /drivers/char/stallion.c | |
parent | cb00ea3528eb3c09eae9871d6e7d038776e952e2 (diff) | |
download | linux-fsl-qoriq-68fc4fabca897a09f75f53bac14cdc7a98f52210.tar.xz |
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/stallion.c')
-rw-r--r-- | drivers/char/stallion.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c index 93d0bb8..4a80b2f 100644 --- a/drivers/char/stallion.c +++ b/drivers/char/stallion.c @@ -4795,7 +4795,6 @@ static void __exit stallion_module_exit(void) { struct stlbrd *brdp; unsigned int i, j; - int retval; pr_debug("cleanup_module()\n"); @@ -4818,9 +4817,7 @@ static void __exit stallion_module_exit(void) for (i = 0; i < 4; i++) class_device_destroy(stallion_class, MKDEV(STL_SIOMEMMAJOR, i)); - if ((retval = unregister_chrdev(STL_SIOMEMMAJOR, "staliomem"))) - printk("STALLION: failed to un-register serial memory device, " - "errno=%d\n", -retval); + unregister_chrdev(STL_SIOMEMMAJOR, "staliomem"); class_destroy(stallion_class); pci_unregister_driver(&stl_pcidriver); |