aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2005-07-30 02:07:36 +0000
committerGuy Harris <guy@alum.mit.edu>2005-07-30 02:07:36 +0000
commite87d4d257b465d7ab8f2223d92ac6cc6192ae1b6 (patch)
tree7d0d7df4e5ee31e5a4dd15a693e06a7eb4943d7f
parent0e69aab43b43ec869d172346a004486ae4e6cd0c (diff)
Get rid of some unused variables.
svn path=/trunk/; revision=15148
-rw-r--r--epan/dissectors/packet-ieee80211.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ieee80211.c b/epan/dissectors/packet-ieee80211.c
index f1a00ca6c0..08d8623dbe 100644
--- a/epan/dissectors/packet-ieee80211.c
+++ b/epan/dissectors/packet-ieee80211.c
@@ -1936,9 +1936,6 @@ dissect_ieee80211_common (tvbuff_t * tvb, packet_info * pinfo,
static wlan_hdr whdrs[4];
char fc_string[9] = "........";
- guint32 fcs;
- guint32 sent_fcs;
-
whdr= &whdrs[0];
if (check_col (pinfo->cinfo, COL_PROTOCOL))
@@ -2472,6 +2469,7 @@ dissect_ieee80211_common (tvbuff_t * tvb, packet_info * pinfo,
{
guint32 fcs = crc32_802_tvb(tvb, hdr_len + len);
guint32 sent_fcs = tvb_get_ntohl(tvb, hdr_len + len);
+
if (fcs == sent_fcs)
proto_tree_add_uint_format(hdr_tree, hf_fcs, tvb,
hdr_len + len, 4, sent_fcs,