mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-04 11:43:54 +08:00
libertas: fix an error code in probe
We accidentally return success instead of a negative error code. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
6ab882a8aa
commit
3691ac4a9c
@ -1118,7 +1118,8 @@ int lbs_start_card(struct lbs_private *priv)
|
||||
else
|
||||
pr_info("%s: mesh disabled\n", dev->name);
|
||||
|
||||
if (lbs_cfg_register(priv)) {
|
||||
ret = lbs_cfg_register(priv);
|
||||
if (ret) {
|
||||
pr_err("cannot register device\n");
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user