r8152: fix the wrong return value
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>
This commit is contained in:
parent
c018b7af5e
commit
45ea3932e2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue