From c198fc65462567cf87c914dc7eff758f18680297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Mon, 25 Jan 2010 11:47:39 +0000 Subject: From Didier Gautheron via bug 4419: se_alloc and ep_alloc never return NULL and se_alloc0 already initialized data with 0. svn path=/trunk/; revision=31654 --- epan/dissectors/packet-rlc-lte.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'epan/dissectors/packet-rlc-lte.c') diff --git a/epan/dissectors/packet-rlc-lte.c b/epan/dissectors/packet-rlc-lte.c index 3f12b9dda5..1184f8aff9 100644 --- a/epan/dissectors/packet-rlc-lte.c +++ b/epan/dissectors/packet-rlc-lte.c @@ -364,9 +364,6 @@ static void show_AM_PDU_in_tree(packet_info *pinfo, proto_tree *tree, tvbuff_t * if (p_pdcp_lte_info == NULL) { p_pdcp_lte_info = se_alloc0(sizeof(struct pdcp_lte_info)); } - if (p_pdcp_lte_info == NULL) { - return; - } p_pdcp_lte_info->channelType = Channel_DCCH; p_pdcp_lte_info->direction = rlc_info->direction; @@ -604,11 +601,6 @@ static void checkChannelSequenceInfo(packet_info *pinfo, tvbuff_t *tvb, p_channel_key = se_alloc(sizeof(rlc_channel_hash_key)); p_channel_status = se_alloc0(sizeof(rlc_channel_status)); - /* Just give up if allocations failed */ - if (!p_channel_key || !p_channel_status) { - return; - } - /* Copy key contents */ memcpy(p_channel_key, &channel_key, sizeof(rlc_channel_hash_key)); @@ -1201,9 +1193,6 @@ static gboolean dissect_rlc_lte_heur(tvbuff_t *tvb, packet_info *pinfo, if (p_rlc_lte_info == NULL) { /* Allocate new info struct for this frame */ p_rlc_lte_info = se_alloc0(sizeof(struct rlc_lte_info)); - if (p_rlc_lte_info == NULL) { - return FALSE; - } infoAlreadySet = FALSE; } else { -- cgit v1.2.3