Commit 7eb9976f authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds

[PATCH] Char: sx, fix return in module init

If pci_register_driver fails, but eisa_driver_register doesn't, we don't call
misc_deregister, but returns error.  Return OK in such cases.
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c9594643
...@@ -2791,6 +2791,7 @@ static int __init sx_init(void) ...@@ -2791,6 +2791,7 @@ static int __init sx_init(void)
retval = 0; retval = 0;
} else if (retval) { } else if (retval) {
#ifdef CONFIG_EISA #ifdef CONFIG_EISA
retval = retval1;
if (retval1) if (retval1)
#endif #endif
misc_deregister(&sx_fw_device); misc_deregister(&sx_fw_device);
......
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