diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-04-04 20:28:42 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-04-04 20:28:42 +0000 |
commit | 3d7ea4a6b5dfb7a7100e13b27da91b42aa784d41 (patch) | |
tree | 9d78d4d8466dc842061cdcd07f0d9767b7b321ee /epan/dissectors/packet-slowprotocols.c | |
parent | 2239e7618db04498faf38be2d73e7006fb8ba424 (diff) |
Fix Coverity CID 280404: Logically dead code.
svn path=/trunk/; revision=48739
Diffstat (limited to 'epan/dissectors/packet-slowprotocols.c')
-rw-r--r-- | epan/dissectors/packet-slowprotocols.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-slowprotocols.c b/epan/dissectors/packet-slowprotocols.c index 0974a9cf98..5631171508 100644 --- a/epan/dissectors/packet-slowprotocols.c +++ b/epan/dissectors/packet-slowprotocols.c @@ -2315,7 +2315,7 @@ dissect_oampdu_event_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree event_type = tvb_get_guint8(tvb, offset); - if (event_type == 0) break; + if (event_type == OAMPDU_EVENT_TYPE_END) break; event_item = proto_tree_add_uint(tree, hf_oampdu_event_type, tvb, offset, 1, event_type); @@ -2324,8 +2324,6 @@ dissect_oampdu_event_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree switch (event_type) { - case OAMPDU_EVENT_TYPE_END: - break; case OAMPDU_EVENT_TYPE_ESPE: { event_tree = proto_item_add_subtree(event_item, |