diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2011-04-28 11:51:26 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-29 15:36:14 -0400 |
commit | 3e41de85f8e3419257df62dd6fe6bdd95a1fdcab (patch) | |
tree | cc2b0413eb0ed12c275fdbf5967c9f6d61955a80 /drivers/net/wireless/iwlegacy/iwl-core.c | |
parent | a078a1fde11b350161e7db2c44353dfae7749212 (diff) | |
download | talos-obmc-linux-3e41de85f8e3419257df62dd6fe6bdd95a1fdcab.tar.gz talos-obmc-linux-3e41de85f8e3419257df62dd6fe6bdd95a1fdcab.zip |
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>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl-core.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-core.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-core.c b/drivers/net/wireless/iwlegacy/iwl-core.c index 2b08efb3b658..82201aca8e99 100644 --- a/drivers/net/wireless/iwlegacy/iwl-core.c +++ b/drivers/net/wireless/iwlegacy/iwl-core.c @@ -211,10 +211,7 @@ int iwl_legacy_init_geos(struct iwl_priv *priv) if (!iwl_legacy_is_channel_valid(ch)) continue; - if (iwl_legacy_is_channel_a_band(ch)) - sband = &priv->bands[IEEE80211_BAND_5GHZ]; - else - sband = &priv->bands[IEEE80211_BAND_2GHZ]; + sband = &priv->bands[ch->band]; geo_ch = &sband->channels[sband->n_channels++]; |