Commit 3691ac4a authored by Dan Carpenter's avatar Dan Carpenter Committed by Kalle Valo

libertas: fix an error code in probe

We accidentally return success instead of a negative error code.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 6ab882a8
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment