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 21BE8A04A6; Mon, 24 Jan 2022 01:07:04 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CE3ED42815; Mon, 24 Jan 2022 01:05:43 +0100 (CET) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mails.dpdk.org (Postfix) with ESMTP id 771384280E for ; Mon, 24 Jan 2022 01:05:40 +0100 (CET) Received: by mail-pg1-f172.google.com with SMTP id e9so13659390pgb.3 for ; Sun, 23 Jan 2022 16:05:40 -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=7dLcdElfzX+mIIMFYvrzIDGxa7M6PkJIWm7Sq0z15pQ=; b=xFwLBWKlsZwxpwk5crNjD2vqfpV8S4bPSWmjbJzQiDoNPL7F8TungYFyxBJT1YO8iP E0IA4+cYR0Z6uI04E4pV12PEKorsgIJ/UW3dMDJkktEzdXQpo961QDU86bsQcnqcYgrH NVl50DkivI9FuAonZWlTF2yJRySWwmosZyx1F/7zrahnSsVMwln3TfbFdLsNPEyFYA8l 66wFbHWWTNhVQTYbyQ7ELo94u4z1cq+JoCKMTEmpiCCK3wQArJjC0lAb5Bl/A7muImRf fSiTJhNn7nF7v6JQUaD4dz7/+a+f3WR18xx93tGjXlfWgZcxWl6cmOxUPctfjdnDp4a4 Fs/w== 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=7dLcdElfzX+mIIMFYvrzIDGxa7M6PkJIWm7Sq0z15pQ=; b=1GoH6xu2bdYFgOmYG200+fFpTtYMjzCqDM/Qm+lYXiaS3r+SHW/NvtG2pQRNF30AC2 GQwlpeygNraGoWGsic4g5Znc0OQ28yh22EvyFJW7FcLo0dyjZHn/lm9Qt/9H7tC8mndy Es6iKrC595BovqI9+1GNCB3cRxhYuIOLyX9ulyGgQP5ZbAQHA/50bDEdIzpI3aTV6lrq 4lbuM5EmZn5gJ+rMYMzboqXPQMLFEpB4DImQkRIu0vAiI4GydTZudVnZRVVQswmqSKrA HhMXNackFbVFVdwJAuJY9HEXJBlkrl6utNxi6HyjnVc0DEdem6TXrFfXbTdqp75+MHgE 8xoA== X-Gm-Message-State: AOAM533HOtv70mnutUsX5GVvswycWbEoGNebQj1LeJS+B9JjA55cMS+n Nfu2N3NpUDLcQ+v24n9yohBmEOuf7l6b6Q== X-Google-Smtp-Source: ABdhPJzI+OJBOlDYl4v2vxqySk5C5++PPYBpqCp7IKgFk013mt0U4A9FPFEQVLxEijYjpM8EZ+iFJw== X-Received: by 2002:a05:6a00:994:b0:4c9:d2a4:c5af with SMTP id u20-20020a056a00099400b004c9d2a4c5afmr1012262pfg.73.1642982739483; Sun, 23 Jan 2022 16:05:39 -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.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 16:05:39 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Nicolas Chautru Subject: [PATCH 17/82] baseband/null remove unnecessary NULL checks Date: Sun, 23 Jan 2022 16:04:13 -0800 Message-Id: <20220124000518.319850-18-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/baseband/null/bbdev_null.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/baseband/null/bbdev_null.c b/drivers/baseband/null/bbdev_null.c index 08cff582b99d..248e12987f03 100644 --- a/drivers/baseband/null/bbdev_null.c +++ b/drivers/baseband/null/bbdev_null.c @@ -251,8 +251,7 @@ parse_bbdev_null_params(struct bbdev_null_params *params, } exit: - if (kvlist) - rte_kvargs_free(kvlist); + rte_kvargs_free(kvlist); return ret; } -- 2.30.2