aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-04-17 13:21:22 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-07 15:02:11 -0400
commit988c0f723d0b1abb399e6e71d8bf3f8bf1949a70 (patch)
treeeaa584d3c0c9982cd94063f41afb0cafae35664b /net/mac80211/main.c
parent1c014420583564ac09e3b67006f2e7050861e66b (diff)
mac80211: a few code cleanups
This has some code cleanups (some inspired by checkpatch), I got bored at probably a third of the output though so if somebody else wants to... Signed-off-by: Johannes Berg <johannes@sipsolutions.net Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index 9ad4e3631b6b..e19be27a3def 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -385,8 +385,8 @@ static int ieee80211_open(struct net_device *dev)
385 * yet be effective. Trigger execution of ieee80211_sta_work 385 * yet be effective. Trigger execution of ieee80211_sta_work
386 * to fix this. 386 * to fix this.
387 */ 387 */
388 if(sdata->vif.type == IEEE80211_IF_TYPE_STA || 388 if (sdata->vif.type == IEEE80211_IF_TYPE_STA ||
389 sdata->vif.type == IEEE80211_IF_TYPE_IBSS) { 389 sdata->vif.type == IEEE80211_IF_TYPE_IBSS) {
390 struct ieee80211_if_sta *ifsta = &sdata->u.sta; 390 struct ieee80211_if_sta *ifsta = &sdata->u.sta;
391 queue_work(local->hw.workqueue, &ifsta->work); 391 queue_work(local->hw.workqueue, &ifsta->work);
392 } 392 }
@@ -1482,7 +1482,7 @@ void ieee80211_tx_status(struct ieee80211_hw *hw, struct sk_buff *skb,
1482 return; 1482 return;
1483 } 1483 }
1484 1484
1485 rthdr = (struct ieee80211_tx_status_rtap_hdr*) 1485 rthdr = (struct ieee80211_tx_status_rtap_hdr *)
1486 skb_push(skb, sizeof(*rthdr)); 1486 skb_push(skb, sizeof(*rthdr));
1487 1487
1488 memset(rthdr, 0, sizeof(*rthdr)); 1488 memset(rthdr, 0, sizeof(*rthdr));