mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
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:
1 parent
ff57084799
commit
2d01b8b7d7
1 file changed
+1
-2
+1
-2
@@ -1118,8 +1118,7 @@ void send_vlanlist(void)
|
|||||||
slen += strtox(outbuf + slen, ",\"vlan\":[");
|
slen += strtox(outbuf + slen, ",\"vlan\":[");
|
||||||
|
|
||||||
for (i = 1; i < 4095; i++) {
|
for (i = 1; i < 4095; i++) {
|
||||||
if (vlan_get(i) < 0)
|
vlan_get(i);
|
||||||
continue;
|
|
||||||
if (!(sfr_data[0] & 0x02)) /* bit 1: VLAN table entry valid */
|
if (!(sfr_data[0] & 0x02)) /* bit 1: VLAN table entry valid */
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user