staging: rtl8192u: r8192U_core.c: Cleaning up variable is set more than once
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Wed, 25 Jun 2014 12:20:58 +0000 (14:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jun 2014 23:59:06 +0000 (19:59 -0400)
A struct member variable is set to the same value more than once

This was found using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c

index b2731c70db355490dff77a84a2f97878b604b4e2..76403864644cd01f13505dfd6fe12d0260dad00e 100644 (file)
@@ -2463,7 +2463,6 @@ static void rtl8192_init_priv_variable(struct net_device *dev)
 
        priv->ieee80211->FwRWRF = 0;    //we don't use FW read/write RF until stable firmware is available.
        priv->ieee80211->current_network.beacon_interval = DEFAULT_BEACONINTERVAL;
-       priv->ieee80211->iw_mode = IW_MODE_INFRA;
        priv->ieee80211->softmac_features  = IEEE_SOFTMAC_SCAN |
                IEEE_SOFTMAC_ASSOCIATE | IEEE_SOFTMAC_PROBERQ |
                IEEE_SOFTMAC_PROBERS | IEEE_SOFTMAC_TX_QUEUE |