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:
Dan Carpenter 2016-03-08 15:04:08 +03:00 committed by Kalle Valo
parent 6ab882a8aa
commit 3691ac4a9c
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}