httpd: drop a test in send_vlanlist() that can never be true

vlan_get() only returns an error for VLAN 4095 and up, and the loop stops
at 4094.
This commit is contained in:
DrDoof committed 2026-10-05 04:35:07 +02:00
1 parent ff57084799
commit 2d01b8b7d7
1 file changed
+1 -2
+1 -2
View File
@@ -1118,8 +1118,7 @@ void send_vlanlist(void)
slen += strtox(outbuf + slen, ",\"vlan\":[");
for (i = 1; i < 4095; i++) {
if (vlan_get(i) < 0)
continue;
vlan_get(i);
if (!(sfr_data[0] & 0x02)) /* bit 1: VLAN table entry valid */
continue;