aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ff.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2011-03-23 06:50:09 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2011-03-23 06:50:09 +0000
commit0832de6b8e57d7510ccfcdfd3d637e0bb186b262 (patch)
tree736ef4090077ac8e9c9333f9e19c55dc86473a44 /epan/dissectors/packet-ff.c
parent691c566900fa4fec2252610ac90b9b13492c4798 (diff)
value&0x03 does not need to be shifted to the right by two.
cut-n-paste bug from a few lines above where value&0x0c do need to be shifted by two before printing as a value coverity 342 svn path=/trunk/; revision=36278
Diffstat (limited to 'epan/dissectors/packet-ff.c')
-rw-r--r--epan/dissectors/packet-ff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ff.c b/epan/dissectors/packet-ff.c
index 09efc8198d..5a7c2bde82 100644
--- a/epan/dissectors/packet-ff.c
+++ b/epan/dissectors/packet-ff.c
@@ -3179,7 +3179,7 @@ dissect_ff_msg_sm_set_assign_info_req_dev_redundancy_state(tvbuff_t *tvb,
decode_enumerated_bitfield(value, 0x03, 8,
names_assigned_redundant_dev_type,
"Assigned Device Redundancy Type: %s"),
- (value & 0x03) >> 2);
+ value & 0x03);
return;
}