diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2010-08-09 20:20:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-09 23:45:06 -0400 |
commit | 547415d5edf8660aee040dc81d8c71b081a59bda (patch) | |
tree | 21221c9702e65a71354ce5c672a085d00ff9b5a6 /drivers/s390/char/monwriter.c | |
parent | b329becfc78b180d5c422c9cb24a6ab378603305 (diff) |
s390: remove WARN_ON for misc_deregister() failures
The previous change added WARN_ON() in misc_deregister(). So it is not
necessary to WARN_ON() misc_deregister() failure by callers.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/s390/char/monwriter.c')
-rw-r--r-- | drivers/s390/char/monwriter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/monwriter.c b/drivers/s390/char/monwriter.c index 98a49dfda1de..572a1e7fd099 100644 --- a/drivers/s390/char/monwriter.c +++ b/drivers/s390/char/monwriter.c | |||
@@ -380,7 +380,7 @@ out_driver: | |||
380 | 380 | ||
381 | static void __exit mon_exit(void) | 381 | static void __exit mon_exit(void) |
382 | { | 382 | { |
383 | WARN_ON(misc_deregister(&mon_dev) != 0); | 383 | misc_deregister(&mon_dev); |
384 | platform_device_unregister(monwriter_pdev); | 384 | platform_device_unregister(monwriter_pdev); |
385 | platform_driver_unregister(&monwriter_pdrv); | 385 | platform_driver_unregister(&monwriter_pdrv); |
386 | } | 386 | } |