Commit 6628d001 authored by John Crispin's avatar John Crispin Committed by Johannes Berg

mac8211: fix struct initialisation

Sparse showed up with the following error.
net/mac80211/agg-rx.c:480:43: warning: Using plain integer as NULL pointer

Fixes: 2ab45876 (mac80211: add support for the ADDBA extension element)
Signed-off-by: default avatarJohn Crispin <john@phrozen.org>
Link: https://lore.kernel.org/r/20200803084540.179908-1-john@phrozen.orgSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 4e56cde1
...@@ -477,7 +477,7 @@ void ieee80211_process_addba_request(struct ieee80211_local *local, ...@@ -477,7 +477,7 @@ void ieee80211_process_addba_request(struct ieee80211_local *local,
size_t len) size_t len)
{ {
u16 capab, tid, timeout, ba_policy, buf_size, start_seq_num; u16 capab, tid, timeout, ba_policy, buf_size, start_seq_num;
struct ieee802_11_elems elems = { 0 }; struct ieee802_11_elems elems = { };
u8 dialog_token; u8 dialog_token;
int ies_len; int ies_len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment