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 BCBA1A00C2; Sun, 20 Feb 2022 01:52:18 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F06F541169; Sun, 20 Feb 2022 01:51:55 +0100 (CET) Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) by mails.dpdk.org (Postfix) with ESMTP id A774E41155 for ; Sun, 20 Feb 2022 01:51:51 +0100 (CET) Received: by mail-pj1-f49.google.com with SMTP id gi6so2157576pjb.1 for ; Sat, 19 Feb 2022 16:51: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=PpwvHLHd9+fy62V9D2Gu0I2ntjXnX+NovVC5P1oK/eg=; b=qtk1JRwuEI0nxSagwJb8t0uw30g/lRTgKXrWDmP8hWwtM4NglMWtHybIUYFcwM4BGC NipfucaeXpTK+8bSYqriSGcwHHcCK73ldhW26cN15WbGZTIOYN168BxeJ3oRrKuN+T4n FD+y4sSh2sSoLh1+R118mYVsGRdFB3Hj/ZL9XgnVVZREH3VLY08plkSYbXdkHlETPHtI 8fbAEPoos0/WPycLLmulwS/a40TLtfcxZjQRSsM3OPFf4K7wtsdiw3REOGoj04sxI3DK vFR8g8kOeFiY21HPj+cF3RlvYhSCGeruyW3DtgPPo6qhZ3kOoDDp+Rd3fKgTuFxQoT6N IMSg== 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=PpwvHLHd9+fy62V9D2Gu0I2ntjXnX+NovVC5P1oK/eg=; b=pDsZaueXQIClLC2ryU30DmZ4n5wCrovy3EIhz1uA/ziMrFPoSb8DKDf00mnXU194ie 2B+menSdLorgQmed02X3vG05G4WglB0MAziGPhYG34lsU9JKwQfdDDDl6dpgSyFbJFAh ZaxSk8GapccxAydqCrXSmhIlIPmYlHQqfKTPQeIBkGAveEaI3Ef9G/Agh1ybZZsxHrmk q1lAYPVpjtOBx1rzUlAQNoP6MtA8+ZWGitLrIE0ljRNfrsjLN8nNoIJdAR8QC+rdRDd1 kWoCBoQ1CR1PVVzKEfmhW7dLWueRCxs9y3T27M7iyKD3XNcpTe62bkyY6TpTpJl8zFrv 01Mw== X-Gm-Message-State: AOAM53238R6oFit0CN6miQpDztPUfznYN5Mnws7e/tY705rUjRU0c6Zn 3KFvbWTxP0Ft8Stl7RiaYMRyrCuU/0CwQzf0 X-Google-Smtp-Source: ABdhPJzKe6r1OHq+0MYKjh2REUT5c+5SkubEN5Ze2k4VR9SlrZ/TSMU0zMvr9jb/cxa6UaA0tfYRyg== X-Received: by 2002:a17:90b:e89:b0:1b9:19d0:432c with SMTP id fv9-20020a17090b0e8900b001b919d0432cmr19081365pjb.154.1645318310794; Sat, 19 Feb 2022 16:51:50 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id f7sm8129695pfc.0.2022.02.19.16.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Feb 2022 16:51:50 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Marko Kovacevic Subject: [PATCH v2 6/7] fips_validation: remove unnecessary NULL check Date: Sat, 19 Feb 2022 16:51:39 -0800 Message-Id: <20220220005140.78713-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220220005140.78713-1-stephen@networkplumber.org> References: <20220219234322.61309-1-stephen@networkplumber.org> <20220220005140.78713-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 No need to check for null pointer here. Signed-off-by: Stephen Hemminger --- examples/fips_validation/fips_dev_self_test.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/fips_validation/fips_dev_self_test.c b/examples/fips_validation/fips_dev_self_test.c index 076e9de099c0..19af134bbe83 100644 --- a/examples/fips_validation/fips_dev_self_test.c +++ b/examples/fips_validation/fips_dev_self_test.c @@ -1523,8 +1523,7 @@ fips_dev_auto_test_uninit(uint8_t dev_id, struct fips_dev_auto_test_env *env) { rte_pktmbuf_free(env->mbuf); - if (env->op) - rte_crypto_op_free(env->op); + rte_crypto_op_free(env->op); rte_mempool_free(env->mpool); rte_mempool_free(env->op_pool); rte_mempool_free(env->sess_pool); -- 2.34.1