summaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v32
diff options
context:
space:
mode:
authorAkinobu Mita2007-07-19 10:47:50 +0200
committerLinus Torvalds2007-07-19 19:04:43 +0200
commit68fc4fabca897a09f75f53bac14cdc7a98f52210 (patch)
treec010fa0d091a543a966aad82926d0fb5c2831f1f /arch/cris/arch-v32
parentUDF: coding style conversion - lindent (diff)
downloadkernel-qcow2-linux-68fc4fabca897a09f75f53bac14cdc7a98f52210.tar.gz
kernel-qcow2-linux-68fc4fabca897a09f75f53bac14cdc7a98f52210.tar.xz
kernel-qcow2-linux-68fc4fabca897a09f75f53bac14cdc7a98f52210.zip
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 'arch/cris/arch-v32')
-rw-r--r--arch/cris/arch-v32/drivers/pcf8563.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/cris/arch-v32/drivers/pcf8563.c b/arch/cris/arch-v32/drivers/pcf8563.c
index fa8d50007e4c..da479a14f836 100644
--- a/arch/cris/arch-v32/drivers/pcf8563.c
+++ b/arch/cris/arch-v32/drivers/pcf8563.c
@@ -193,9 +193,7 @@ err:
void __exit
pcf8563_exit(void)
{
- if (unregister_chrdev(PCF8563_MAJOR, DEVICE_NAME) < 0) {
- printk(KERN_INFO "%s: Unable to unregister device.\n", PCF8563_NAME);
- }
+ unregister_chrdev(PCF8563_MAJOR, DEVICE_NAME);
}
/*