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 B294445C7A; Tue, 12 Nov 2024 18:38:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 962DA4025F; Tue, 12 Nov 2024 18:38:45 +0100 (CET) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mails.dpdk.org (Postfix) with ESMTP id 06A0B40144 for ; Tue, 12 Nov 2024 18:38:44 +0100 (CET) Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-720c2db824eso6469596b3a.0 for ; Tue, 12 Nov 2024 09:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731433123; x=1732037923; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=icOvDlEsbGRlZcaBh/DTQUenkqUOVfnGCR3ikKX2Lm0=; b=OP9iGF8un1niFp5S73hfFOPxWPm6uxC+EqxJoDS4FM9a1AtYYpeTfm9x8kKrssg55z dpus64G5FQYrlovDPXNfWniKMYfpjty8/1zFAiQIHvMAF4LTt7akYgECWB9FuAC/jWf9 icnCX8wUGbxFPFxL2swP/E8jRBTpNk57jcuWmwUlRm2u5yN3bZSYFTuzd5LJeGJfmFQu DqX8ruNVHRghdu4oJlI5OvD2C0JyfXKhWxHPeAhRZmqfY55fn/pShVtpau02QgHkdvnN 6PlbjZD08kC+GzVEJ4O0XAwNY9A/4mcGFksynr6kYieP1Y+/cbeKGQ6b6FQVFede/laJ TVrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731433123; x=1732037923; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=icOvDlEsbGRlZcaBh/DTQUenkqUOVfnGCR3ikKX2Lm0=; b=FGsRs2K2DIi0WIG8ZZZeUepw72GKq4jdCyAPY+Y+LRLld0uKpyP9bQayL0wS8RZ9yU kB7ArgWffhfDM1QCuC/rXLPsxnguF2bJDoZ8V++xKcezwG0FS541ugc1gofQIB0dWcAV npdykihAuJtebvfclhnKwGV+ehFPwsNLVCMFfSPoE1FgAtqIURhPh8PPcPZ7HMf5lLb0 DdOu56TGO8rePaL98TAmhwDHVkd13zmWWsY4qzwOJZgL3P354pSSUsCJ7yQeVWJivNcj rAtcSMBlEb7ujmiLqE3wVpizSDqE45CnIEG0ohyaqrquh/hq5pvsy12pWbTvCgp4/x2Y Mmww== X-Gm-Message-State: AOJu0YxcMkw5G8rVH9trgkFKPjNg3ZOcClS2t0Mg2GcmljsHhWfjkjsU W3xm4IMyAfyR+RDHOFIZuvZ6195hB1gxxvbOrSfy2PmKnBkBnOnlR8JX58gANXgZGaFihXJEg05 Oi4w= X-Google-Smtp-Source: AGHT+IEot8eGtN3mGy6Th1cTuoG/aYun9B9vfgSr+0Wpp1CvpQewdHHwk28thjb8Wl/GI9gqmudBnA== X-Received: by 2002:a05:6a00:1488:b0:71e:5d1d:1aa2 with SMTP id d2e1a72fcca58-72413289c35mr23673774b3a.7.1731433123229; Tue, 12 Nov 2024 09:38:43 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724078641a2sm11836727b3a.20.2024.11.12.09.38.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Nov 2024 09:38:42 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 0/3] unnecessary checks for null Date: Tue, 12 Nov 2024 09:38:00 -0800 Message-ID: <20241112173833.323934-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 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 Found by running nullfree.cocci on 24.11-rc2 Stephen Hemminger (3): bus/fslmc: remove unnecessary null check net/dpaa2: remove unnecessary check for null before rte_free net/ntnic: remove unnecessary check for null before free drivers/bus/fslmc/fslmc_vfio.c | 3 +-- drivers/net/dpaa2/dpaa2_ethdev.c | 3 +-- drivers/net/dpaa2/dpaa2_flow.c | 27 +++++++------------ drivers/net/dpaa2/dpaa2_mux.c | 6 ++--- drivers/net/ntnic/nthw/flow_api/flow_api.c | 6 ++--- .../flow_api/profile_inline/flm_age_queue.c | 3 +-- .../flow_api/profile_inline/flm_evt_queue.c | 3 +-- .../flow_api/profile_inline/flm_lrn_queue.c | 3 +-- drivers/net/ntnic/nthw/stat/nthw_stat.c | 3 +-- 9 files changed, 19 insertions(+), 38 deletions(-) -- 2.45.2