mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 02:12:00 -04:00
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: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
committed by
Kalle Valo
parent
18e714687b
commit
4c8a468510
@@ -1046,7 +1046,7 @@ int lbs_rtap_supported(struct lbs_private *priv)
|
||||
int lbs_start_card(struct lbs_private *priv)
|
||||
{
|
||||
struct net_device *dev = priv->dev;
|
||||
int ret = -1;
|
||||
int ret;
|
||||
|
||||
/* poke the firmware */
|
||||
ret = lbs_setup_firmware(priv);
|
||||
|
||||
Reference in New Issue
Block a user