Don't assign a value which is never used to a 'proto item *': Covertiy 1135;
authorBill Meier <wmeier@newsguy.com>
Thu, 19 May 2011 20:13:54 +0000 (20:13 -0000)
committerBill Meier <wmeier@newsguy.com>
Thu, 19 May 2011 20:13:54 +0000 (20:13 -0000)
Remove some unneeded #includes.

svn path=/trunk/; revision=37305

epan/dissectors/packet-zbee-aps.c

index bfb47b06fcea2b9ed0b3843e47808cffb6e7a48d..793e05ce5d838c181925d8f1650af49b4bb1c9ee 100644 (file)
@@ -30,9 +30,7 @@
 #endif /* HAVEHCONFIG_H */
 
 #include <string.h>
-#include <stdlib.h>
 #include <glib.h>
-#include <gmodule.h>
 #include <epan/packet.h>
 #include <epan/prefs.h>    /* req'd for packet-zbee-security.h */
 #include <epan/expert.h>
@@ -751,8 +749,8 @@ dissect_zbee_aps(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     packet.profile = tvb_get_letohs(tvb, offset);
     profile_handle = dissector_get_uint_handle(zbee_aps_dissector_table, packet.profile);
     if (tree) {
-        ti = proto_tree_add_uint(aps_tree, hf_zbee_aps_profile, tvb, offset,2,
-                packet.profile);
+        proto_tree_add_uint(aps_tree, hf_zbee_aps_profile, tvb, offset,2,
+               packet.profile);
         /* Update the protocol root and info column later, after the source endpoint
          * so that the source and destination will be back-to-back in the text.
          */