diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-03-08 15:04:08 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-03-10 14:56:46 +0200 |
commit | 3691ac4a9c957c2896f8ebfb8a92081301f1682e (patch) | |
tree | d6abcbe2fe67ebc4a76a552fc619fa07ecf81263 /drivers/net/wireless/marvell/libertas/main.c | |
parent | 6ab882a8aa896bc148f282df1372e8638cace49a (diff) | |
download | lwn-3691ac4a9c957c2896f8ebfb8a92081301f1682e.tar.gz lwn-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>
Diffstat (limited to 'drivers/net/wireless/marvell/libertas/main.c')
-rw-r--r-- | drivers/net/wireless/marvell/libertas/main.c | 3 |
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; } |