jxta: remove dead code (CID 1159018).

Check already present in line 1226.

Change-Id: I2b3cd15a1d35b334a690afd3ce1a9b8b1f32e188
Reviewed-on: https://code.wireshark.org/review/17029
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Dario Lombardo 2016-08-12 12:29:28 +02:00 committed by Michael Mann
parent 620f5721b1
commit 854793d48e
1 changed files with 2 additions and 5 deletions

View File

@ -1288,13 +1288,10 @@ static int dissect_jxta_message(tvbuff_t * tvb, packet_info * pinfo, proto_tree
tvbuff_t *jxta_message_element_tvb = tvb_new_subset_remaining(tvb, offset);
int processed;
if(JXTA_MSG_VERSION_1 == message_version) {
if (JXTA_MSG_VERSION_1 == message_version) {
processed = dissect_jxta_message_element_1(jxta_message_element_tvb, pinfo, NULL, 0, NULL);
} else if(JXTA_MSG_VERSION_2 == message_version) {
} else { /* JXTA_MSG_VERSION_2 */
processed = dissect_jxta_message_element_2(jxta_message_element_tvb, pinfo, NULL, 0, NULL);
} else {
/* Sort of a lie, we say that we don't recognize it at all. */
return 0;
}
if (processed < 0) {