btle: Fix Dead Store

Fix dead store (Dead assignement/Dead increment) Warning found by Clang

Change-Id: I9ad5252af93642a52db0e1d9df67fa5553103d7f
Reviewed-on: https://code.wireshark.org/review/37372
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2020-06-03 14:19:20 +00:00 committed by Anders Broman
parent b1fb415dbf
commit 72db848d04
1 changed files with 1 additions and 1 deletions

View File

@ -1214,7 +1214,7 @@ dissect_btle(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
if (flags & 0x40) {
/* Tx Power */
item = proto_tree_add_item(ext_header_tree, hf_extended_advertising_tx_power, tvb, offset, 1, ENC_LITTLE_ENDIAN);
proto_tree_add_item(ext_header_tree, hf_extended_advertising_tx_power, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
acad_len -= 1;