[patch] libertas: fix an error code in probe
Dan Carpenter
dan.carpenter at oracle.com
Tue Mar 8 04:04:08 PST 2016
We accidentally return success instead of a negative error code.
Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
diff --git a/drivers/net/wireless/marvell/libertas/main.c b/drivers/net/wireless/marvell/libertas/main.c
index b35b8bc..8541cbe 100644
--- a/drivers/net/wireless/marvell/libertas/main.c
+++ b/drivers/net/wireless/marvell/libertas/main.c
@@ -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;
}
More information about the libertas-dev
mailing list