diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-02-02 16:31:42 +0000 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-02-19 13:17:23 +0100 |
commit | 11b05ba34d89808ca99180d2656438a319670c56 (patch) | |
tree | a24952a59f9607588ff406e027597a3b1e4266b6 /net/mac80211/tx.c | |
parent | db8d93a7a355121d49777c059afbca23c53c8628 (diff) |
mac80211: remove redundant initialization to pointer 'hdr'
The pointer hrd is being initialized with a value that is never read
and re-assigned a little later, hence the initialization is redundant
and can be removed.
Cleans up clang warning:
net/mac80211/tx.c:1924:24: warning: Value stored to 'hdr' during its
initialization is never read
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 25904af38839..5decd0fb247c 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -1921,7 +1921,7 @@ void ieee80211_xmit(struct ieee80211_sub_if_data *sdata, { struct ieee80211_local *local = sdata->local; struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); - struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; + struct ieee80211_hdr *hdr; int headroom; bool may_encrypt; |