diff options
author | Pavel Roskin <proski@gnu.org> | 2011-07-13 11:19:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-15 13:38:31 -0400 |
commit | 933d594313a5928ffc5325d7bbb6e2383d79622e (patch) | |
tree | 08467734948e6969a7839fa066cb5b5fa27262bb /drivers/net/wireless/orinoco/cfg.c | |
parent | 16c929df0895e6f52f4a0f17683d709f5fef95d8 (diff) |
orinoco: minor fixes for problems found by checkpatch.pl
Eliminate spaces before tabs. Eliminate typedefs. Add spaces around
operators.
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco/cfg.c')
-rw-r--r-- | drivers/net/wireless/orinoco/cfg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/orinoco/cfg.c b/drivers/net/wireless/orinoco/cfg.c index 736bbb9bd1d0..f7b15b8934fa 100644 --- a/drivers/net/wireless/orinoco/cfg.c +++ b/drivers/net/wireless/orinoco/cfg.c | |||
@@ -59,7 +59,7 @@ int orinoco_wiphy_register(struct wiphy *wiphy) | |||
59 | for (i = 0; i < NUM_CHANNELS; i++) { | 59 | for (i = 0; i < NUM_CHANNELS; i++) { |
60 | if (priv->channel_mask & (1 << i)) { | 60 | if (priv->channel_mask & (1 << i)) { |
61 | priv->channels[i].center_freq = | 61 | priv->channels[i].center_freq = |
62 | ieee80211_dsss_chan_to_freq(i+1); | 62 | ieee80211_dsss_chan_to_freq(i + 1); |
63 | channels++; | 63 | channels++; |
64 | } | 64 | } |
65 | } | 65 | } |
@@ -182,7 +182,7 @@ static int orinoco_set_channel(struct wiphy *wiphy, | |||
182 | channel = ieee80211_freq_to_dsss_chan(chan->center_freq); | 182 | channel = ieee80211_freq_to_dsss_chan(chan->center_freq); |
183 | 183 | ||
184 | if ((channel < 1) || (channel > NUM_CHANNELS) || | 184 | if ((channel < 1) || (channel > NUM_CHANNELS) || |
185 | !(priv->channel_mask & (1 << (channel-1)))) | 185 | !(priv->channel_mask & (1 << (channel - 1)))) |
186 | return -EINVAL; | 186 | return -EINVAL; |
187 | 187 | ||
188 | if (orinoco_lock(priv, &flags) != 0) | 188 | if (orinoco_lock(priv, &flags) != 0) |
@@ -191,7 +191,7 @@ static int orinoco_set_channel(struct wiphy *wiphy, | |||
191 | priv->channel = channel; | 191 | priv->channel = channel; |
192 | if (priv->iw_mode == NL80211_IFTYPE_MONITOR) { | 192 | if (priv->iw_mode == NL80211_IFTYPE_MONITOR) { |
193 | /* Fast channel change - no commit if successful */ | 193 | /* Fast channel change - no commit if successful */ |
194 | hermes_t *hw = &priv->hw; | 194 | struct hermes *hw = &priv->hw; |
195 | err = hw->ops->cmd_wait(hw, HERMES_CMD_TEST | | 195 | err = hw->ops->cmd_wait(hw, HERMES_CMD_TEST | |
196 | HERMES_TEST_SET_CHANNEL, | 196 | HERMES_TEST_SET_CHANNEL, |
197 | channel, NULL); | 197 | channel, NULL); |