nxp802154: Remove unused code

The IEEE 802.15.4 dissector is built-in and will never be not present,
and if disabled then call_dissector() will call data handle.

Change-Id: Ie8d2a1bed1ba540df1a5bc239b57e475b346c8f1
Reviewed-on: https://code.wireshark.org/review/25103
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Stig Bjørlykke 2018-01-01 23:38:13 +01:00 committed by Anders Broman
parent d383e34408
commit 7a2fae2b79
1 changed files with 1 additions and 6 deletions

View File

@ -90,12 +90,7 @@ dissect_nxp_802154_sniffer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
}
ieee802154_tvb = tvb_new_subset_length(tvb, offset, tvb_captured_length(tvb) - offset);
if(ieee802154_handle != NULL){
call_dissector(ieee802154_handle, ieee802154_tvb, pinfo, tree);
}else{
call_data_dissector(ieee802154_tvb, pinfo, tree);
col_add_fstr(pinfo->cinfo, COL_INFO, "No 802.15.4 dissector!");
}
call_dissector(ieee802154_handle, ieee802154_tvb, pinfo, tree);
return tvb_captured_length(tvb);
}