Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
authoralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 30 Sep 2013 09:03:41 +0000 (09:03 +0000)
committeralagoutte <alagoutte@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 30 Sep 2013 09:03:41 +0000 (09:03 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@52290 f5534014-38df-0310-8fa8-9805f1628bb7

plugins/wimax/wimax_utils.c

index 4ec011b57f893b1960a316c6d913bc2eb2eaf82e..0ea5be75f00282cd966aae59525985de562d2d32 100644 (file)
@@ -2215,7 +2215,7 @@ void wimax_service_flow_encodings_decoder(tvbuff_t *tvb, packet_info *pinfo, pro
                                /* TODO: Find a way to get the correct service type from the TLV */
                                tlv_value = tvb_get_guint8(tvb, offset);
                                set_service_type( tlv_value );
-                               tlv_tree = add_tlv_subtree(&tlv_info, tree, hf_sfe_ul_grant_scheduling, tvb, offset-tlv_value_offset, ENC_BIG_ENDIAN);
+                               add_tlv_subtree(&tlv_info, tree, hf_sfe_ul_grant_scheduling, tvb, offset-tlv_value_offset, ENC_BIG_ENDIAN);
                        break;
                        case SFE_TX_POLICY:
                                /* add TLV subtree */
@@ -2817,7 +2817,7 @@ void wimax_pkm_tlv_encoded_attributes_decoder(tvbuff_t *tvb, packet_info *pinfo,
                                wimax_sa_descriptor_decoder(tvb_new_subset_length(tvb, offset, tlv_len), pinfo, tlv_tree);
                        break;
                        case PKM_ATTR_SA_TYPE:
-                               tlv_tree = add_tlv_subtree(&tlv_info, tree, hf_pkm_sa_type, tvb, offset-tlv_value_offset, ENC_BIG_ENDIAN);
+                               add_tlv_subtree(&tlv_info, tree, hf_pkm_sa_type, tvb, offset-tlv_value_offset, ENC_BIG_ENDIAN);
                        break;
                        case PKM_ATTR_SECURITY_NEGOTIATION_PARAMETERS:
                                tlv_tree = add_protocol_subtree(&tlv_info, ett_pkm_tlv_encoded_attributes_decoder, tree, proto_wimax_utility_decoders, tvb, offset-tlv_value_offset, tlv_len, "Security Negotiation Parameters");