From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Z2a64-000521-TP for ltp-list@lists.sourceforge.net; Wed, 10 Jun 2015 07:06:48 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1Z2a63-0005dd-BQ for ltp-list@lists.sourceforge.net; Wed, 10 Jun 2015 07:06:48 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NPP027IMVR4E120@mailout3.samsung.com> for ltp-list@lists.sourceforge.net; Wed, 10 Jun 2015 16:06:40 +0900 (KST) Date: Wed, 10 Jun 2015 07:06:40 +0000 (GMT) From: Maninder Singh MIME-version: 1.0 MIME-version: 1.0 Message-id: <344144289.810771433920000091.JavaMail.weblogic@epmlwas05b> Subject: [LTP] [PATCH 7/8] kernel/aio-stress.c: rempve explicit NULL check before free Reply-To: maninder1.s@samsung.com List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: "ltp-list@lists.sourceforge.net" No need of NULL check before free Signed-off-by: Maninder Singh Signed-off-by: Akhilesh Kumar --- testcases/kernel/io/ltp-aiodio/aio-stress.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/testcases/kernel/io/ltp-aiodio/aio-stress.c b/testcases/kernel/io/ltp-aiodio/aio-stress.c index 06a4953..67d8acb 100644 --- a/testcases/kernel/io/ltp-aiodio/aio-stress.c +++ b/testcases/kernel/io/ltp-aiodio/aio-stress.c @@ -991,12 +991,9 @@ int setup_ious(struct thread_info *t, return 0; free_buffers: - if (t->ios) - free(t->ios); - if (t->iocbs) - free(t->iocbs); - if (t->events) - free(t->events); + free(t->ios); + free(t->iocbs); + free(t->events); return -1; } -- 1.7.9.5 ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list