From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 776E7A04A6; Mon, 24 Jan 2022 01:11:40 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3BAF34293B; Mon, 24 Jan 2022 01:06:41 +0100 (CET) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) by mails.dpdk.org (Postfix) with ESMTP id 923BB427DF for ; Mon, 24 Jan 2022 01:06:36 +0100 (CET) Received: by mail-pg1-f177.google.com with SMTP id e9so13661066pgb.3 for ; Sun, 23 Jan 2022 16:06:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mF1O2ovl9ENpq45EkliXSoAk6DMa6GvfSkvDRawMqIM=; b=LrZPp5/MG/kK0CtEh05ZQvHUyCK/VT0emhvVgKeiRiXRJDOdJO+38lCgEJUtHqpMF1 g0SRMbInZYMmdpp+VTX4q9PBBbZHElZn1yq2ICr5xN0nJxiuC3s85F4iuJ1R10UDnUQo TIU7eRyz53jIdJ5Q2TYQJ3ZGL6tGvBVfXuhgqN6dcsVG/M8h2vHSSkkDpCalUrUYwe+g nF4G0anrqmzXKlintSdT6UeNvTLoztPBqnDTnsl0beiLEhYnxWixaguZj37iupWyeg5e PIvIJTQ+XCn2+vCVUNvwyTZ6MyW9Ssaes5fn07xWarYmq2u81xBeqB8MmMOrhD5PPUat bkxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mF1O2ovl9ENpq45EkliXSoAk6DMa6GvfSkvDRawMqIM=; b=48pkOEOl7bwgUhcB3IJ4oNDIM4KQh3nJr1H7qEhAGYgRFIPK2tuS7FYQYcqhr4FoKi rcwhX8e2jxwa+X57msz+sfnotIBbby0twvIyYeEmiCvu257JNsJN6PYp2KLf+fQ7Hpym eQwYAHauq75de2ARzk4I+XeFVMbtvhopjeBQIPnwTxQkoHYVgy9QWKb4LgyJ0UpzL4Gy fkjTCI2B5rWuQKUa6Xv19cdc/bCgeULYJaT2sekgmmmIpKLqr/cnrYgYJSX0wI4nuRYR E3538Mina6jhn0NbFxDR5YB/+x2obHNYtqlJFZQb/gTTX70m5Rrk5s+kPgm19PAPv1WC ALpw== X-Gm-Message-State: AOAM531+bFUIA89cztzUWwmWWwvi8eSIhiaiFF54glCMgjEEq0j3nyXL SSZXi2ewHIviwGBSntrBoiVKMKJGDViIZw== X-Google-Smtp-Source: ABdhPJzVy8oLr7KrL6fV/CSnSehASWHOL4vFsjazkQtyZnqg2JpHwUWGvbDg0Ddqj9IKhCbylirYFg== X-Received: by 2002:a63:646:: with SMTP id 67mr10132415pgg.122.1642982795578; Sun, 23 Jan 2022 16:06:35 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id ck21sm10935350pjb.51.2022.01.23.16.06.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:06:35 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nipun Gupta , Hemant Agrawal Subject: [PATCH 71/82] raw/skeleton: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:05:07 -0800 Message-Id: <20220124000518.319850-72-stephen@networkplumber.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220124000518.319850-1-stephen@networkplumber.org> References: <20220124000518.319850-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Remove redundant NULL pointer checks before free functions found by nullfree.cocci Signed-off-by: Stephen Hemminger --- drivers/raw/skeleton/skeleton_rawdev_test.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/raw/skeleton/skeleton_rawdev_test.c b/drivers/raw/skeleton/skeleton_rawdev_test.c index 484468eeb460..693b24c415de 100644 --- a/drivers/raw/skeleton/skeleton_rawdev_test.c +++ b/drivers/raw/skeleton/skeleton_rawdev_test.c @@ -395,13 +395,11 @@ test_rawdev_enqdeq(void) RTE_TEST_ASSERT_EQUAL((unsigned int)ret, count, "Unable to dequeue buffers"); - if (deq_buffers) - free(deq_buffers); + free(deq_buffers); return TEST_SUCCESS; cleanup: - if (buffers[0].buf_addr) - free(buffers[0].buf_addr); + free(buffers[0].buf_addr); return TEST_FAILED; } -- 2.30.2