summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2020-08-03 10:45:40 +0200
committerJohannes Berg <johannes.berg@intel.com>2020-08-03 10:55:17 +0200
commit6628d00116b37bd5ef44cc69f5a8df6b0d4e14b7 (patch)
tree75d5006595730abe04d57c45310466fdad9a89a0 /net
parent4e56cde15f7d68cf86ff8efff8504497de152475 (diff)
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: 2ab45876756f (mac80211: add support for the ADDBA extension element) Signed-off-by: John Crispin <john@phrozen.org> Link: https://lore.kernel.org/r/20200803084540.179908-1-john@phrozen.org Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/agg-rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c
index 7f245e9f114c..313ba97acae3 100644
--- a/net/mac80211/agg-rx.c
+++ b/net/mac80211/agg-rx.c
@@ -477,7 +477,7 @@ void ieee80211_process_addba_request(struct ieee80211_local *local,
size_t len)
{
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;
int ies_len;