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 20A2A42818; Thu, 23 Mar 2023 02:04:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F01794021E; Thu, 23 Mar 2023 02:04:33 +0100 (CET) Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mails.dpdk.org (Postfix) with ESMTP id EA54A40156 for ; Thu, 23 Mar 2023 02:04:31 +0100 (CET) Received: by mail-pj1-f54.google.com with SMTP id om3-20020a17090b3a8300b0023efab0e3bfso388986pjb.3 for ; Wed, 22 Mar 2023 18:04:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1679533471; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GXb606zJI5WqdATpEr2FO7vvdacgIEXVD/eNBLsr6mQ=; b=X3jtvJVWA3jEyhieYHdHk3KUsVJExgh1mTupSl32Wa8/iDgjyGusaQ3rWeatip80RW YpKleLDgtg5wa/8h037C17wKQfuolL6mCILMlQLMTUl4XXiolwbSOrZYbOS5qoJDuRrO y/TYHzSsNmc8O9jM3cZvCMtFjj7jsbB5KBfaf4nafdIEJuc9sPMFGb+JCl5+87SlgM5I x0cSMgUW8UCTCLRpSJ9k+pKZ0GAUomHDGOO5aDgHWS77XveOYEN9+Urocmrc49SjqlhV La00GMVI8T0j/kjAsjvMZAH0e6ju3/W2t8n0UBjmzYD3YOXjgZT6HU3q96zNQXpZorpq 0s1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679533471; 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=GXb606zJI5WqdATpEr2FO7vvdacgIEXVD/eNBLsr6mQ=; b=vAOu1C+8omkLsqSVSdGjHm7r6lvmTnHbvDzwu+OcdPhEfwLK7wGqAGGWBBt4kO+VF+ OYNlCmCZtQlN5gUHSg7mQjQQYTHkwMxp+5C/pbHlQndFDOK8b1a7IrwpSTjlx8OEti5a Apt6JkbxT8tPqn96GynHvi4tS3ZRT0QHn1G9VCaKJVeLD5H41/2UnuvV++htKFQ3L0xn B7x1Hrs27hea1ayMCxWXGgGyj9qLamgdj5oiawgllc48mMlWRsbZeS6PsTVvuBmf+VFC D/SiRXiL8V+ylne9hlAFzoy9e2GLbty9/qZeDPk5BIXLDZIGorOjPho4jt+J9/74IwLR upqg== X-Gm-Message-State: AO0yUKWzfgpE7K9eaYnL+2dcD8szD3PerEoLn4YwS9C+JMlIVUKgNrdR bUA30v3inB5erUJ35hKh/e3hFSuYed8PQrirzDqLjg== X-Google-Smtp-Source: AK7set9QGRmuTXop50cVl7lnW2uGvxjot21EvaypnzBA1W8MDudFtPBwI+iq0FdRWKVbc8FoLNyKLQ== X-Received: by 2002:a17:90b:3b82:b0:233:e305:f617 with SMTP id pc2-20020a17090b3b8200b00233e305f617mr5578572pjb.32.1679533470630; Wed, 22 Mar 2023 18:04:30 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id l9-20020a17090b078900b0023b4c0ef8f2sm135206pjz.20.2023.03.22.18.04.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 18:04:30 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 0/4] Remove unnecessary null free checks Date: Wed, 22 Mar 2023 18:04:24 -0700 Message-Id: <20230323010428.64020-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.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 These were produced by using coccinelle script. $ ./devtools/cocci.sh ./devtools/cocci/nullfree.cocci Stephen Hemminger (4): mldev: remove unnecessary null free checks ml/cnkx: remove unnecessary null checks graph: remove unnicessary null checks examples/fips_validation: remove unneeded null checks app/test-mldev/test_device_ops.c | 6 ++---- app/test-mldev/test_inference_common.c | 24 ++++++++---------------- app/test-mldev/test_model_ops.c | 6 ++---- drivers/ml/cnxk/cn10k_ml_dev.c | 9 +++------ drivers/ml/cnxk/cn10k_ml_ops.c | 12 ++++-------- examples/fips_validation/main.c | 6 ++---- lib/graph/graph_pcap.c | 3 +-- lib/mldev/rte_mldev.c | 3 +-- 8 files changed, 23 insertions(+), 46 deletions(-) -- 2.39.2