Commit 4c8a4685 authored by Colin Ian King's avatar Colin Ian King Committed by Kalle Valo

libertas: remove redundant assignment to variable ret

The variable ret is being initialized with a value that is never
read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 18e71468
...@@ -1046,7 +1046,7 @@ int lbs_rtap_supported(struct lbs_private *priv) ...@@ -1046,7 +1046,7 @@ int lbs_rtap_supported(struct lbs_private *priv)
int lbs_start_card(struct lbs_private *priv) int lbs_start_card(struct lbs_private *priv)
{ {
struct net_device *dev = priv->dev; struct net_device *dev = priv->dev;
int ret = -1; int ret;
/* poke the firmware */ /* poke the firmware */
ret = lbs_setup_firmware(priv); ret = lbs_setup_firmware(priv);
......
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