From 77d26b5f883f856674ecd86d13df496320d451f5 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 15 Jan 2018 19:23:25 -0800 Subject: Get rid of dead code. The loop runs until total_subobj_len is 0, so it'll always be zero if we exit the loop normally, and the test of whether it's non-zero will always fail. Fixes Coverity CID 1427591. --- print-rsvp.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'print-rsvp.c') diff --git a/print-rsvp.c b/print-rsvp.c index 8d89abf4..12b51f27 100644 --- a/print-rsvp.c +++ b/print-rsvp.c @@ -1329,11 +1329,6 @@ rsvp_obj_print(netdissect_options *ndo, obj_tptr+=subobj_len; obj_tlen+=subobj_len; } - - if (total_subobj_len) { - /* unless we have a TLV parser lets just hexdump */ - hexdump=TRUE; - } break; default: -- cgit v1.2.1