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 56D9BA034C; Wed, 22 Jun 2022 20:52:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 72DBF4280C; Wed, 22 Jun 2022 20:52:06 +0200 (CEST) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTP id BBB7F40DDB for ; Wed, 22 Jun 2022 20:52:03 +0200 (CEST) Received: by mail-pg1-f178.google.com with SMTP id h192so16904556pgc.4 for ; Wed, 22 Jun 2022 11:52:03 -0700 (PDT) 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=zfI0msxtJexYn9bg1W1OKQ2JGVCOz9N/nINVqmZiRW4=; b=JnbtYemprlvQkB/5sZwtTwsatxyX7FdbrTvBijMoU4GwDlG4um34fS7KaBO/5VSi7n iUlNchJDk735gSuTiPwZGLCek0JILM9wueJqR9lEtE6isvo1yTNweAvoWKHcuWqf2/6Q 8NUgQwEcrN1jkVXUbiM1ZnRCfITsNXaElvSiK00RY21FNrPwzfCWbKMeYqZpgOdCZiDb 1VbeLP/CKGgspt8SRj9ewK2rU4hi687xIxT17bBLCoT+aZS/nwGPeYfbGcvii6XbnPAL wmLHwuz1w7UvhKCoZwgbX9vmNrbK4gTKwiwTdDmgiVhygirvPbxFIuKEFO0qzr22hamt ULHA== 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=zfI0msxtJexYn9bg1W1OKQ2JGVCOz9N/nINVqmZiRW4=; b=2sNtwssf6MRdzpwRSaIqXpF4QXD9q9SP1Tu2sJUiub3fKdpvmp+D0HLW+umOYnqpSu FEOZyxuBdEUCdHaDdvn3KLASvnQm7SkdZC3VBqAkhtIbIxxBPEHHbazGq8dnc0xv/RhH PeTwKp1k9j+7v14LvxxJ8oLd2GF5PJ5wdIG9pnPk88xeeYd260mWnSuP5iyklOONiqkP yY30XQS88NYVrGaRPgPUR4KyaNuDw9nq2LDId9+HSuwwiRWx/Vl5U00/Ec4OUDZh+xEg fgBp4S69JByY7VtqtwDMJDycxSR4Ephj73HeqX0Gm1+o4UwIDqhrXVmvQFC/UYMnYTqT 4ndg== X-Gm-Message-State: AJIora+SD8H8rG5/0KVUO1iR55723aE9pqQOr+Ke8cYN7AOWZmDgfH/Y dB2PT2yzkPyB7iUe3h3SADqLO1lIjdprUJqm X-Google-Smtp-Source: AGRyM1sbPP7IC3P2RvNSyIvZZjVTwlD5fn/4Gfkgdu3Z82A6dX612qez9o9gvMJwpM+cxj9P507Zxw== X-Received: by 2002:a05:6a00:430e:b0:525:26c1:973e with SMTP id cb14-20020a056a00430e00b0052526c1973emr15963582pfb.52.1655923922656; Wed, 22 Jun 2022 11:52:02 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id r6-20020a638f46000000b00407e25d4527sm9215817pgn.22.2022.06.22.11.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jun 2022 11:52:02 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Rosen Xu , Tianfei zhang Subject: [PATCH 2/3] raw/ifpga: remove unnecessary null check Date: Wed, 22 Jun 2022 11:51:57 -0700 Message-Id: <20220622185158.397779-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220622185158.397779-1-stephen@networkplumber.org> References: <20220622185158.397779-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 The function rte_kvargs_free handles calling with NULL. Found by nullfree.cocci. Signed-off-by: Stephen Hemminger --- drivers/raw/ifpga/ifpga_rawdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/raw/ifpga/ifpga_rawdev.c b/drivers/raw/ifpga/ifpga_rawdev.c index ceb18aed8d44..8c05302a65b8 100644 --- a/drivers/raw/ifpga/ifpga_rawdev.c +++ b/drivers/raw/ifpga/ifpga_rawdev.c @@ -1768,8 +1768,7 @@ ifpga_vdev_parse_devargs(struct rte_devargs *devargs, ret = 0; end: - if (kvlist) - rte_kvargs_free(kvlist); + rte_kvargs_free(kvlist); return ret; } -- 2.35.1