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 AC4EBA04A7; Mon, 24 Jan 2022 01:08:02 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CC3BE42853; Mon, 24 Jan 2022 01:05:55 +0100 (CET) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTP id CFDCF42841 for ; Mon, 24 Jan 2022 01:05:51 +0100 (CET) Received: by mail-pg1-f178.google.com with SMTP id j10so1502679pgc.6 for ; Sun, 23 Jan 2022 16:05:51 -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=Sg02TriqmdTUIJ8/c8rOF6gxigxkF8bQzUURLn3oxNU=; b=1DShaW5JYoa9sPZExDc7SkoH/5b7Yt+AHP3I/dnb1Y2IUazzIViKqAjVjZOteCau7n L4d6tm5+kZfgi6kTzZxVeGaQoL0OFne9fmfUbeHi15aO0yu7875GFhL4ELP8ztuFN00M v/w+/vcc43sTXyDhodKiPsXhzX9LnMtNbgBiZ4Veb+qUxtFrVwuLRFxWEu8XnN19tpWH 6PZVIn2A5WYXyo6oyeBPd7gohO3sJPHiCGiDkkrVBHoIXNxW3/9uPpRfKj/TnykmP4H4 rOsdELFICLlYChrlYK3RncJi+QfCNKb9w/Qag1qkpQqYzvDourPqnG4FuLYkYK7IudEC 8FxQ== 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=Sg02TriqmdTUIJ8/c8rOF6gxigxkF8bQzUURLn3oxNU=; b=toUcqSSnNrOCqSwxzXo9saOkQCelKrxgUb9hcoQ2tchghrKkh1EbqFkQp7IpyYUTeh kdfJbYyVkNjD1RN0hCxfdRcYWtu4YnZp8MnXgq3evvUbsnxwiGoEqSvLlRYgjgJq0rT+ PoG96cPhMnyM1AcbLD029afP/QL2Rl6CXLaQSwppwiDUWgIEeWTnZIiAmcx2K7cnjUBG 8rZUFIUZAjjgM6l5w3r0LpoYox/f8r6k9+KW4J0FqMq1iVl1oHGyJOlZ3cnQE2fbol/8 grZmNNwkeErmlB7d68CiCBQJO0a26mvmKOzPwYEbQ+Y28RIMVp0nM1GxNU4Eh7BlWGse fucA== X-Gm-Message-State: AOAM5330aUMiiHldXjXYdk6QLojTMwya4S20x6Bu48z2HejsLcIQrOrg wp5C3KiVdy57tfrGQYrym98+f73arFh0+Q== X-Google-Smtp-Source: ABdhPJz7dj/PQqFIsGlYxtwL1AcG3B9LJjzXIVqGLpl7pirbAHPLp/4zcql5EeUcapMi9GbLAX2yng== X-Received: by 2002:a63:36ca:: with SMTP id d193mr9995267pga.88.1642982750894; Sun, 23 Jan 2022 16:05:50 -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.05.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:05:50 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Ruifeng Wang Subject: [PATCH 28/82] crypto/armv8: remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:04:24 -0800 Message-Id: <20220124000518.319850-29-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/crypto/armv8/rte_armv8_pmd_ops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/armv8/rte_armv8_pmd_ops.c b/drivers/crypto/armv8/rte_armv8_pmd_ops.c index 1b2749fe62c6..c07ac0489e57 100644 --- a/drivers/crypto/armv8/rte_armv8_pmd_ops.c +++ b/drivers/crypto/armv8/rte_armv8_pmd_ops.c @@ -251,8 +251,7 @@ armv8_crypto_pmd_qp_setup(struct rte_cryptodev *dev, uint16_t qp_id, return 0; qp_setup_cleanup: - if (qp) - rte_free(qp); + rte_free(qp); return -1; } -- 2.30.2