Commit:     6d65f5db2f66e3ff44df759fbbb3c7482879fb1e
Parent:     1036d8642b6bb604774ea143120fe10ede4ab078
Author:     Johannes Berg <[EMAIL PROTECTED]>
AuthorDate: Sun Dec 23 10:11:55 2007 +0100
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:00:55 2008 -0800

    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 <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 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 8302c70..f619416 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -932,7 +932,6 @@ __ieee80211_tx_prepare(struct ieee80211_txrx_data *tx,
        struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
        struct ieee80211_hdr *hdr;
        struct ieee80211_sub_if_data *sdata;
-       ieee80211_txrx_result res = TXRX_CONTINUE;
        int hdrlen;
@@ -997,7 +996,7 @@ __ieee80211_tx_prepare(struct ieee80211_txrx_data *tx,
        control->flags |= IEEE80211_TXCTL_FIRST_FRAGMENT;
-       return res;
+       return TXRX_CONTINUE;
 /* Device in tx->dev has a reference added; use dev_put(tx->dev) when
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to