From 5469898e8b05f8e4b5daf7e1340b17e94fe815e3 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Wed, 23 Nov 2022 14:15:08 +0100 Subject: [PATCH] fix -Wunused-variable warnings Remove them. Signed-off-by: Andre Heider --- iwinfo_nl80211.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c index d4d7538..97cd39f 100644 --- a/iwinfo_nl80211.c +++ b/iwinfo_nl80211.c @@ -1095,7 +1095,6 @@ static char * nl80211_ifadd(const char *ifname) static void nl80211_ifdel(const char *ifname) { struct nl80211_msg_conveyor *req; - int err; req = nl80211_msg(ifname, NL80211_CMD_DEL_INTERFACE, 0); if (req) @@ -2371,7 +2370,6 @@ static int nl80211_get_txpwrlist(const char *ifname, char *buf, int *len) { int err, ch_cur; int dbm_max = -1, dbm_cur, dbm_cnt; - struct nl80211_msg_conveyor *req; struct iwinfo_txpwrlist_entry entry; if (nl80211_get_channel(ifname, &ch_cur)) @@ -3119,8 +3117,6 @@ static int nl80211_get_modelist_cb(struct nl_msg *msg, void *arg) { struct nl80211_modes *m = arg; int bands_remain, freqs_remain; - uint16_t caps = 0; - uint32_t vht_caps = 0; struct nlattr **attr = nl80211_parse(msg); struct nlattr *bands[NL80211_BAND_ATTR_MAX + 1]; struct nlattr *freqs[NL80211_FREQUENCY_ATTR_MAX + 1]; @@ -3390,7 +3386,6 @@ static int nl80211_get_mbssid_support(const char *ifname, int *buf) static int nl80211_hardware_id_from_fdt(struct iwinfo_hardware_id *id, const char *ifname) { char *phy, compat[64], path[PATH_MAX]; - int i; /* Try to determine the phy name from the given interface */ phy = nl80211_ifname2phy(ifname); -- 2.30.2