[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: Jiri Slaby <jirislaby@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
c9594643c0
commit
7eb9976f10
@@ -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);
|
||||||
|
Reference in New Issue
Block a user