libertas: fix an error code in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 8 Mar 2016 12:04:08 +0000 (15:04 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Mar 2016 12:56:46 +0000 (14:56 +0200)
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>
drivers/net/wireless/marvell/libertas/main.c

index b35b8bcce24cc0a34081fab73928c6d44b2fd91e..8541cbed786da3b09d5ac08e12cf5b8be4b2cdd5 100644 (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;
        }