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 E7F66A00C2; Sun, 20 Feb 2022 19:22:25 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 20C7C41161; Sun, 20 Feb 2022 19:22:01 +0100 (CET) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by mails.dpdk.org (Postfix) with ESMTP id 4122B4115C for ; Sun, 20 Feb 2022 19:21:59 +0100 (CET) Received: by mail-pf1-f182.google.com with SMTP id i6so6765614pfc.9 for ; Sun, 20 Feb 2022 10:21:59 -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=gu4ShMwGKFYaCtPWJrNOfWOilKWAACkG2pTQChRs/1J3KVolll1zj4cpxPj9LLTpfe UN8zSxtwprHgEjAyDGEqxrio3hPGlxGvNzmGPirbmA9UBOVnyeIaEbPNkSeTMsaNEG6V Cu0RI9+qvrKW4S/45ehtB+csPjpwKEQ88ZUUTXomOM2dwGxtZwbLmuzwfoWxLibSE2la oAce+umCh/DugXMiBGVgqaniuZjxpeZP26PDYFvgWQvamgoqJMNDaRIoHdlQ0aD0RpE5 hotDpmkNP67BspJ2nFAffAUIHfUuAeLtf8SlExsU6Hw3BbleWXPenK78UQbdTL2lhNWb 0F4w== 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=Wc+f6nvWkU/QkBEHNxAT+xxRl5jfWfDBNvOcx4tKZxtIwrQnsLZaiZpJQYculCI+jJ qTTmSeyAxa56zj4b88YZemyGr8znJIYkhKOt6F8aLIilXSOcF7SVWYqk5LGH4ok/vzXc L+tPw8mY6esUZVADRgY4nAn/UPGb4QA3SJcfHx+4aM/wdJ6/PZtDbxKLo2AYZv3z9qQ5 VRaYEbT/cQOOHH/HZkn3Mql6bH41ezoGkXh+VgSNSnbyciKR6TMdZz3YlUJUK6SYXytx 631x7dA5GttInzMYiotooq8Klg6+eks+2U0HEs5LAkbNYJ9+wkjjO+VlHIzAJrZSo0Qm qW5A== X-Gm-Message-State: AOAM530IJbOWPLCKLDyWslgjlWxNYUQHx+14xDhD+2Q5rxiPK5LsbebH G7cxm1TY25XdUaDrkQwylXI0lf6mtC6HXcH4 X-Google-Smtp-Source: ABdhPJx9PspilzxsHKXnV8FL/IYwOlJQzvjPwfvfQl2T7Yz6A5/vHA0kq0LCzgUkLNMpHEtik/JN5Q== X-Received: by 2002:a63:c47:0:b0:371:3a2e:32d8 with SMTP id 7-20020a630c47000000b003713a2e32d8mr13278134pgm.281.1645381318214; Sun, 20 Feb 2022 10:21:58 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id u8sm13528107pgf.83.2022.02.20.10.21.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 10:21:57 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Marko Kovacevic Subject: [PATCH v3 6/8] fips_validation: remove unnecessary NULL check Date: Sun, 20 Feb 2022 10:21:45 -0800 Message-Id: <20220220182147.9750-7-stephen@networkplumber.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220220182147.9750-1-stephen@networkplumber.org> References: <20220219234322.61309-1-stephen@networkplumber.org> <20220220182147.9750-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