summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-03-08 13:04:08 +0100
committerKalle Valo <kvalo@codeaurora.org>2016-03-10 13:56:46 +0100
commit3691ac4a9c957c2896f8ebfb8a92081301f1682e (patch)
treed6abcbe2fe67ebc4a76a552fc619fa07ecf81263
parentMerge tag 'iwlwifi-next-for-kalle-2016-03-09_2' of https://git.kernel.org/pub... (diff)
downloadlinux-3691ac4a9c957c2896f8ebfb8a92081301f1682e.tar.xz
linux-3691ac4a9c957c2896f8ebfb8a92081301f1682e.zip
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>
-rw-r--r--drivers/net/wireless/marvell/libertas/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/libertas/main.c b/drivers/net/wireless/marvell/libertas/main.c
index b35b8bcce24c..8541cbed786d 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;
}