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 <[email protected]>
---
commit c1124b32f6ab775db247b56206e3bc6f28f3f741
tree fa9a86433f5ca2c984ccd46a2c730fb9ed34feb7
parent d6a49f7c30c60781420537fea54e8133ab2ed35f
author Jiri Slaby <[email protected]> Tue, 31 Oct 2006 00:44:54 +0100
committer Jiri Slaby <[email protected]> Tue, 31 Oct 2006 00:44:54 +0100
drivers/char/sx.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/char/sx.c b/drivers/char/sx.c
index 4414cd8..339f278 100644
--- a/drivers/char/sx.c
+++ b/drivers/char/sx.c
@@ -2661,6 +2661,7 @@ #endif
retval = 0;
} else if (retval) {
#ifdef CONFIG_EISA
+ retval = retval1;
if (retval1)
#endif
misc_deregister(&sx_fw_device);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]