diff options
author | Liad Kaufman <liad.kaufman@intel.com> | 2014-09-03 15:24:59 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-09-05 13:52:07 +0200 |
commit | 6188c271f0f2cbc89a52981d252107f7f409f45f (patch) | |
tree | e60e67e2722165f86fd505da5d829d55fee87544 /net/mac80211/tx.c | |
parent | 2740f0cf8ec8bc7ee6a58f68841759e367dda98f (diff) | |
download | op-kernel-dev-6188c271f0f2cbc89a52981d252107f7f409f45f.zip op-kernel-dev-6188c271f0f2cbc89a52981d252107f7f409f45f.tar.gz |
mac80211: fix description comment of ieee80211_subif_start_xmit
The function description claimed that on error the skb isn't
freed even though it is, and stated return values that are
different than what really happens in the code.
Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index d1b3c22..2f7754c 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -1789,9 +1789,8 @@ static void ieee80211_tx_latency_start_msrmnt(struct ieee80211_local *local, * @skb: packet to be sent * @dev: incoming interface * - * Returns: 0 on success (and frees skb in this case) or 1 on failure (skb will - * not be freed, and caller is responsible for either retrying later or freeing - * skb). + * Returns: NETDEV_TX_OK both on success and on failure. On failure skb will + * be freed. * * This function takes in an Ethernet header and encapsulates it with suitable * IEEE 802.11 header based on which interface the packet is coming in. The |