diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-12-23 04:11:55 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:00:55 -0500 |
commit | 6d65f5db2f66e3ff44df759fbbb3c7482879fb1e (patch) | |
tree | 72decedbd3e619c127950bd4e3d515c87bbcb0c0 | |
parent | 1036d8642b6bb604774ea143120fe10ede4ab078 (diff) |
mac80211: remove misleading 'res' variable
When this function returns != CONTINUE, it needs to put the
station struct it has acquired. Hence, having this unused
variable is not just superfluous but also misleading.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/mac80211/tx.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 8302c70da9a4..f6194167253d 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -932,7 +932,6 @@ __ieee80211_tx_prepare(struct ieee80211_txrx_data *tx, | |||
932 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); | 932 | struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr); |
933 | struct ieee80211_hdr *hdr; | 933 | struct ieee80211_hdr *hdr; |
934 | struct ieee80211_sub_if_data *sdata; | 934 | struct ieee80211_sub_if_data *sdata; |
935 | ieee80211_txrx_result res = TXRX_CONTINUE; | ||
936 | 935 | ||
937 | int hdrlen; | 936 | int hdrlen; |
938 | 937 | ||
@@ -997,7 +996,7 @@ __ieee80211_tx_prepare(struct ieee80211_txrx_data *tx, | |||
997 | } | 996 | } |
998 | control->flags |= IEEE80211_TXCTL_FIRST_FRAGMENT; | 997 | control->flags |= IEEE80211_TXCTL_FIRST_FRAGMENT; |
999 | 998 | ||
1000 | return res; | 999 | return TXRX_CONTINUE; |
1001 | } | 1000 | } |
1002 | 1001 | ||
1003 | /* Device in tx->dev has a reference added; use dev_put(tx->dev) when | 1002 | /* Device in tx->dev has a reference added; use dev_put(tx->dev) when |