]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
Staging: rtl8192u: add missing curly braces
[mv-sheeva.git] / drivers / staging / rtl8192u / ieee80211 / ieee80211_softmac.c
index 12858880f95ffaef872ad5ea9a0f93eace2e6b41..20f8c347cae432522a5af6acd618cd9ea8e393f5 100644 (file)
@@ -509,9 +509,10 @@ void ieee80211_softmac_scan_wq(struct work_struct *work)
                if (watchdog++ > MAX_CHANNEL_NUMBER)
                {
                //if current channel is not in channel map, set to default channel.
-                       if (!channel_map[ieee->current_network.channel]);
+                       if (!channel_map[ieee->current_network.channel]) {
                                ieee->current_network.channel = 6;
                                goto out; /* no good chans */
+                       }
                }
        }while(!channel_map[ieee->current_network.channel]);
        if (ieee->scanning == 0 )