[PATCH 3/3] move assignment out of condition
Leon M. Busch-George
leon at georgemail.de
Fri Mar 1 15:16:22 PST 2024
From: "Leon M. Busch-George" <leon at georgemail.eu>
Signed-off-by: Leon M. Busch-George <leon at georgemail.eu>
---
iwinfo_nl80211.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/iwinfo_nl80211.c b/iwinfo_nl80211.c
index 8eab671..6270ef9 100644
--- a/iwinfo_nl80211.c
+++ b/iwinfo_nl80211.c
@@ -2031,7 +2031,9 @@ static int nl80211_get_phyname(const char *ifname, char *buf)
strcpy(buf, name);
return 0;
}
- else if ((name = nl80211_phy2ifname(ifname)) != NULL)
+
+ name = nl80211_phy2ifname(ifname);
+ if (name != NULL)
{
name = nl80211_ifname2phy(name);
--
2.44.0
More information about the openwrt-devel
mailing list