Skip to contentSkip to conversation

mac8211: fix struct initialisation

PATCH New John Crispin 1 participant 1 message Aug 3, 2020 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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)
---
 net/mac80211/agg-rx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/agg-rx.c +1 -1
index 7f245e9f114c..313ba97acae3 100644
@@ -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;
 
Signature · 1 line
2.25.1