aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-netanalyzer.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-11-16 20:18:51 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-11-16 20:18:51 +0000
commit356c6ab4161ea0fcc0820f5f53089f78f993b824 (patch)
tree5034dbcd556607989f9d39d2fa551a9e208648f9 /epan/dissectors/packet-netanalyzer.c
parent934c2ce1a2ddd15b271b6f55efda9c5d9a321396 (diff)
Don't assign the return value of proto_tree_add_item to a variable if it isn't going to be used. Fixes Coverity CID 1327.
svn path=/trunk/; revision=39889
Diffstat (limited to 'epan/dissectors/packet-netanalyzer.c')
-rw-r--r--epan/dissectors/packet-netanalyzer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-netanalyzer.c b/epan/dissectors/packet-netanalyzer.c
index c07e17c16c..840303ba95 100644
--- a/epan/dissectors/packet-netanalyzer.c
+++ b/epan/dissectors/packet-netanalyzer.c
@@ -278,7 +278,7 @@ dissect_netanalyzer_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* GPIO number */
offset++;
- ti = proto_tree_add_item (netanalyzer_header_tree, hf_netanalyzer_gpio_number, tvb, offset, 1, ENC_LITTLE_ENDIAN);
+ proto_tree_add_item (netanalyzer_header_tree, hf_netanalyzer_gpio_number, tvb, offset, 1, ENC_LITTLE_ENDIAN);
gpio_num = (tvb_get_guint8(tvb, offset) & 0x03);
/* GPIO edge */