From b2f5058371c68026a4f1a2e047cf638e9e226fe1 Mon Sep 17 00:00:00 2001
From: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: Thu, 31 Aug 2023 20:24:31 +0200
Subject: [PATCH] fix warning

cntlr_map.c:2035:37: error: the comparison will always
evaluate as 'true' for the address of 'ssid' will never be NULL
---
 src/cntlr_map.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/cntlr_map.c b/src/cntlr_map.c
index 832376a5..7c3c7183 100644
--- a/src/cntlr_map.c
+++ b/src/cntlr_map.c
@@ -2032,8 +2032,7 @@ static void cntlr_create_sta_channel_reports(struct controller *c, struct sta *s
 			list_for_each_entry(p, &r->iflist, list) {
 				if (!p->bss || !s->fh || !s->fh->bss)
 					continue;
-				if (p->bss->ssid && s->fh->bss->ssid
-						&& !memcmp(p->bss->ssid, s->fh->bss->ssid, 33))
+				if (!memcmp(p->bss->ssid, s->fh->bss->ssid, 33))
 					_cntlr_create_sta_channel_reports(r->radio_el,
 							reports, num_report);
 			}
-- 
GitLab