r8152: fix the wrong return value
authorhayeswang <hayeswang@realtek.com>
Fri, 3 Jan 2014 03:21:56 +0000 (11:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jan 2014 01:37:26 +0000 (20:37 -0500)
The return value should be the boolean value, not the error code.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Spotted-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c

index e3d878c1cecfc508b8199540de75915ad98d88b0..13fabbbaf54d74c964abd2accd3539582c707674 100644 (file)
@@ -2708,7 +2708,7 @@ static bool rtl_ops_init(struct r8152 *tp, const struct usb_device_id *id)
                        ops->unload             = rtl8153_unload;
                        break;
                default:
-                       ret = -EFAULT;
+                       ret = false;
                        break;
                }
                break;