aboutsummaryrefslogtreecommitdiff
path: root/example/ndpi_util.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2016-05-23 23:04:50 +0200
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2016-05-23 23:04:50 +0200
commit594f7074f73f9ef4b3aa2636f8be3c52ec9132c8 (patch)
tree4ed4044f51f74f119891794cbf453d19a08587dd /example/ndpi_util.c
parenta6c9d33c09872273dc5861470e69a23e3107b09a (diff)
ndpi_util: Value stored to 'fcs' is never read
Diffstat (limited to 'example/ndpi_util.c')
-rw-r--r--example/ndpi_util.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/example/ndpi_util.c b/example/ndpi_util.c
index 93949c277..ae7383fbd 100644
--- a/example/ndpi_util.c
+++ b/example/ndpi_util.c
@@ -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;