From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) by dpdk.org (Postfix) with ESMTP id 78AD28E7B for ; Thu, 21 Jan 2016 12:31:21 +0100 (CET) Received: by mail-wm0-f45.google.com with SMTP id l65so215974199wmf.1 for ; Thu, 21 Jan 2016 03:31:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=GvrRVmB1tM/LBIESUbBePaKp+PFY9GzNd22CC65jGFQ=; b=VJzfzVLJ6vJKb4U7daGC3NG7LUAg2IpTdHvbS+zXXl4W6ye5EUnHo6T9M9R466jTtN 0Wcag+0IBGgh1t33TZVNXHbk4FrZJUMbgtThOTnS4uq0uRfkFrMxERgq2V1HeSMV2u3v gdp7SIfT493xB13/AZvQu1NN+xbjBiSUREJodcDdbJspfebRP/U56vEU27Eg6Z+QWtDD CA9+x4t07OKqY8xl9sHW0pRxXCtCSkCR+McR9BZzA96UvZqLP/kXaWR8vUf+gouesjRJ nV4OY5hgEgEZS8oOX5hftDgYhH0z6MC5FhAwsga+g8ezgoyASCG9x0ukIPgVArAamXPa 1jXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=GvrRVmB1tM/LBIESUbBePaKp+PFY9GzNd22CC65jGFQ=; b=ja6UoNmxYut+k6FNMxaDbWW1ZL8QxFbkeBJpbbrUaUeNBzdCZSBLkk8Cuh3m/W5Cq7 P3oB648k5BqXP1q7dp9mPlgHhA6KEL6iRj6wjvaGYIH5JYZHzpzg/0QtndWHTg8Z3A+x /VKr3Xh9zrCVOwi7zNn4N47WKsIIU7WoRN/IfHFEt3oPMk+1bnf9jVKCB6v0ZYsQvTOa fA+6edky2+3aVumsyip6H88aC6LtIh8Otfn5Ktfij47nXj1LsnUtFSvGt3FMJCC0GScb dQ5nTwNeXcTjt/nktyuOcoOIh8QUXIAJF82FEzNDcWr0txDIG4amftmV5pVHXwe8iNKY NJ4w== X-Gm-Message-State: AG10YOQqIRJk9w98cnN11M7QBxZHLqG1atkWNqtKLs8BfJQC1Q8SJM96p3CFRH81fNVCFqUh X-Received: by 10.28.217.74 with SMTP id q71mr9494121wmg.68.1453375881328; Thu, 21 Jan 2016 03:31:21 -0800 (PST) Received: from xps13.localnet (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id j3sm2509956wmj.19.2016.01.21.03.31.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Jan 2016 03:31:20 -0800 (PST) From: Thomas Monjalon To: David Marchand Date: Thu, 21 Jan 2016 12:30:20 +0100 Message-ID: <3415689.rt0oTMTjK5@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1453375399-25576-1-git-send-email-david.marchand@6wind.com> References: <1453375399-25576-1-git-send-email-david.marchand@6wind.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH] no need to test for NULL when freeing X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jan 2016 11:31:21 -0000 2016-01-21 12:23, David Marchand: > free() already handles NULL pointer. > > Signed-off-by: David Marchand > --- > app/test/test_devargs.c | 3 +- > app/test/test_link_bonding.c | 6 ++-- > app/test/test_pci.c | 3 +- > app/test/test_ring.c | 36 ++++++++-------------- > drivers/net/xenvirt/rte_eth_xenvirt.c | 6 ++-- > drivers/net/xenvirt/rte_mempool_gntalloc.c | 9 ++---- > examples/ip_pipeline/cpu_core_map.c | 3 +- > .../pipeline/pipeline_flow_classification_be.c | 6 ++-- > examples/vhost_xen/vhost_monitor.c | 3 +- > examples/vhost_xen/xenstore_parse.c | 33 +++++++------------- > lib/librte_eal/common/eal_common_devargs.c | 3 +- > lib/librte_eal/linuxapp/eal/eal_memory.c | 3 +- > lib/librte_ether/rte_ethdev.c | 6 ++-- > lib/librte_kvargs/rte_kvargs.c | 4 +-- > 14 files changed, 41 insertions(+), 83 deletions(-) Have you used a coccinelle script?