iwlegacy: simplify init geos

Don't need to use conditional as ch->band is already assigned to
IEEE80211_BAND_5GHZ or IEEE80211_BAND_2GHZ

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Stanislaw Gruszka 2011-04-28 11:51:26 +02:00 committed by John W. Linville
parent a078a1fde1
commit 3e41de85f8

View File

@ -211,10 +211,7 @@ int iwl_legacy_init_geos(struct iwl_priv *priv)
if (!iwl_legacy_is_channel_valid(ch)) if (!iwl_legacy_is_channel_valid(ch))
continue; continue;
if (iwl_legacy_is_channel_a_band(ch)) sband = &priv->bands[ch->band];
sband = &priv->bands[IEEE80211_BAND_5GHZ];
else
sband = &priv->bands[IEEE80211_BAND_2GHZ];
geo_ch = &sband->channels[sband->n_channels++]; geo_ch = &sband->channels[sband->n_channels++];