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:
hayeswang 2014-01-03 11:21:56 +08:00 committed by David S. Miller
parent c018b7af5e
commit 45ea3932e2
1 changed files with 1 additions and 1 deletions

View 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;