From: Jouni Malinen Date: Sun, 17 Dec 2023 10:17:18 +0000 (+0200) Subject: Remove unused assignment from Country element generation X-Git-Tag: hostap_2_11~640 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da8a38fecb959a54e76dafd9ef9c6a6e391ef9c6;p=thirdparty%2Fhostap.git Remove unused assignment from Country element generation This looks confusing and can cause warnings from static analyzers. Signed-off-by: Jouni Malinen --- diff --git a/src/ap/beacon.c b/src/ap/beacon.c index 935ffd25e..3588030fb 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -239,12 +239,10 @@ static u8 * hostapd_fill_subband_triplets(struct hostapd_data *hapd, u8 *pos, continue; /* can use same entry */ } - if (start && prev) { + if (start && prev) pos = hostapd_eid_country_add(hapd, pos, end, chan_spacing, start, prev); - start = NULL; - } /* Start new group */ start = prev = chan;