Commit 547415d5 authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds

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: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b329becf
...@@ -701,7 +701,7 @@ int __init dasd_eer_init(void) ...@@ -701,7 +701,7 @@ int __init dasd_eer_init(void)
void dasd_eer_exit(void) void dasd_eer_exit(void)
{ {
if (dasd_eer_dev) { if (dasd_eer_dev) {
WARN_ON(misc_deregister(dasd_eer_dev) != 0); misc_deregister(dasd_eer_dev);
kfree(dasd_eer_dev); kfree(dasd_eer_dev);
dasd_eer_dev = NULL; dasd_eer_dev = NULL;
} }
......
...@@ -627,7 +627,7 @@ static int __init mon_init(void) ...@@ -627,7 +627,7 @@ static int __init mon_init(void)
static void __exit mon_exit(void) static void __exit mon_exit(void)
{ {
segment_unload(mon_dcss_name); segment_unload(mon_dcss_name);
WARN_ON(misc_deregister(&mon_dev) != 0); misc_deregister(&mon_dev);
device_unregister(monreader_device); device_unregister(monreader_device);
driver_unregister(&monreader_driver); driver_unregister(&monreader_driver);
iucv_unregister(&monreader_iucv_handler, 1); iucv_unregister(&monreader_iucv_handler, 1);
......
...@@ -380,7 +380,7 @@ static int __init mon_init(void) ...@@ -380,7 +380,7 @@ static int __init mon_init(void)
static void __exit mon_exit(void) static void __exit mon_exit(void)
{ {
WARN_ON(misc_deregister(&mon_dev) != 0); misc_deregister(&mon_dev);
platform_device_unregister(monwriter_pdev); platform_device_unregister(monwriter_pdev);
platform_driver_unregister(&monwriter_pdrv); platform_driver_unregister(&monwriter_pdrv);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment