ndpi_util: Value stored to 'fcs' is never read

This commit is contained in:
Alexis La Goutte
2016-05-23 23:04:50 +02:00
parent a6c9d33c09
commit 594f7074f7
-3
View File
@@ -556,7 +556,6 @@ void ndpi_workflow_process_packet (struct ndpi_workflow * workflow,
int llc_off;
int pyld_eth_len = 0;
int check;
u_int32_t fcs;
u_int64_t time;
u_int16_t ip_offset, ip_len, ip6_offset;
u_int16_t frag_off = 0, vlan_id = 0;
@@ -646,8 +645,6 @@ void ndpi_workflow_process_packet (struct ndpi_workflow * workflow,
return;
}
fcs = header->len - 4;
/* Calculate 802.11 header length (variable) */
wifi = (struct ndpi_wifi_header*)( packet + eth_offset + radio_len);
fc = wifi->fc;