From 6db087ae4b67b9c1f6e193ce3b7606345988d51d Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 19 Jan 2021 17:06:45 -0800 Subject: [PATCH] No need to check for both "not null" and "is space". The latter implies the former. Squelches a cppcheck redundantCondition warning. --- caputils/ws80211_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caputils/ws80211_utils.c b/caputils/ws80211_utils.c index c21d035ca7..6c34b8e929 100644 --- a/caputils/ws80211_utils.c +++ b/caputils/ws80211_utils.c @@ -666,7 +666,7 @@ static int ws80211_populate_devices(GArray *interfaces) continue; *t = 0; t = line; - while (*t && *t == ' ') + while (*t == ' ') t++; memset(&iface_info, 0, sizeof(iface_info)); iface_info.pub = &pub;