Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45ea3932 authored by hayeswang's avatar hayeswang Committed by David S. Miller
Browse files

r8152: fix the wrong return value



The return value should be the boolean value, not the error code.

Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Spotted-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c018b7af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;