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 6AFD54603A; Sun, 12 Jan 2025 20:31:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 40DBD4029F; Sun, 12 Jan 2025 20:31:00 +0100 (CET) Received: from mail-lj1-f225.google.com (mail-lj1-f225.google.com [209.85.208.225]) by mails.dpdk.org (Postfix) with ESMTP id D22054025A for ; Sun, 12 Jan 2025 20:30:58 +0100 (CET) Received: by mail-lj1-f225.google.com with SMTP id 38308e7fff4ca-30227c56b11so33163451fa.3 for ; Sun, 12 Jan 2025 11:30:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736710258; x=1737315058; h=content-transfer-encoding:c:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zGrQcsO/YOZOAe97MG1DZdK23vRvD5wlFrorIV6yYK4=; b=u0qc68P+tPUZ9OsEDTqOdh9nTUp0Fnmh8sjISU+5DEfHhfOKiIVGT6d9ob8+k4XMRK 6J8jDaJZHqxpNoTNpdTUZHvj8FlXJ1V7Rjt++thu53H8DERHro56VZlLJnMzF1O9DEM6 AE7UZUMtGgtt2Mck3LsraN7QX88dbKHWUB04KTqRkY7bwUHp9xDMA9Sg+89JRdRSZjD9 F9VqTmY3nPy8dkhtP/h7N9COf2CM0xgdU0KQX+hznT8OwbE9rjj3QXgth2+uBxfjTZC3 wPrmD/qyTh5KKx7DcHw3SYc2dIvjhy76DnwqeNZOyi6C3N5FdtNISIzKvbAdz3cyuw/C 92HQ== X-Gm-Message-State: AOJu0YxcoC/ytAV3C0kTy1Q+5OnZEhFCNfgOoMvFGhfMsoo9kYHW0jHA vcjAFqcLEJFyMHGOO9upqlfgDgpn+QZHfAO9FTegvZeK9000lT28EsrOZMpCFHbzBbhL3IIQpCp x+O1kSPlcAY3dNCr2l8dKmCCFy6AVlPh9 X-Gm-Gg: ASbGncsUis9ilxGfWRcv4VtPDIsv34e3nKTyZ7uupWz0M+oc60Vuw9A4AuRMcA2PYah mTQjGrMoJDlPlilRaxZ8phDGl5o9nB821mgEnWWGi4NOSZokZoR/wFAWL69wxGu1DUvV0xMkcq2 fcHK261tPvqXMjRDg9vIRAWDV2qvebhdjRrcz3vJbfRGKTpwg9WcV0BzPKWq0yzuZK9PbrWskty TnDdBN4YKMPnq/KCHPIx1UZHyBVRDQwZ11v6SB/LvNiriaJKLhi04pt1FKXBPn6Rbs08aUq4uE4 HTDsejbnAntqasMRuNev6G+HPQ== X-Google-Smtp-Source: AGHT+IFAwt8uPE8yXTyK0OVQLprUJ+is1AZtchIi1ZAIu/vysjTCIhgQ/4rhi268Pj5RJhMF6d0WC7FnS3Vu X-Received: by 2002:a05:651c:1991:b0:300:3bcd:8d05 with SMTP id 38308e7fff4ca-305f45482c0mr50330531fa.15.1736710257709; Sun, 12 Jan 2025 11:30:57 -0800 (PST) Received: from smtpservice.6wind.com ([185.13.181.2]) by smtp-relay.gmail.com with ESMTP id 38308e7fff4ca-305ff1110bfsm2101321fa.16.2025.01.12.11.30.57; Sun, 12 Jan 2025 11:30:57 -0800 (PST) X-Relaying-Domain: 6wind.com Received: from localhost (rainbow.dev.6wind.com [10.17.1.165]) by smtpservice.6wind.com (Postfix) with ESMTP id 5503E13D9F; Sun, 12 Jan 2025 20:30:57 +0100 (CET) From: Ariel Otilibili To: dev@dpdk.org Cc: Stephen Hemminger , Thomas Monjalon , David Marchand , Ariel Otilibili , Chenbo Xia , Ziyang Xuan , Xiaoyun Wang , Gaetan Rivet , Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao , Harman Kalra , Ajit Khaparde , Somnath Kotur , Rosen Xu Subject: [PATCH v2 0/6] remove check around pthread_mutex_init() Date: Sun, 12 Jan 2025 20:30:37 +0100 Message-Id: <20250112193043.67372-1-otilibil@eurecom.fr> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20250112185842.9752-1-otilibil@eurecom.fr> References: <20250112185842.9752-1-otilibil@eurecom.fr> MIME-Version: 1.0 c: Maxime Coquelin 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 Hello, This series addresses Bugzilla ID 1586; the man says > pthread_mutex_init always returns 0. The other mutex functions > return 0 on success and a non-zero error code on error. Meaning, the check around around pthread_mutex_init() is needless. Thank you, Link: https://man7.org/linux/man-pages/man3/pthread_mutex_lock.3.html Bugzilla ID: 1586 --- v2 * fix build issues v1 (https://inbox.dpdk.org/dev/20250112185842.9752-1-otilibil@eurecom.fr/#t) Ariel Otilibili (6): raw/ifpga: remove check around pthread_mutex_init() net/bnxt: remove check around pthread_mutex_init() common/cnxk: remove check around pthread_mutex_init() net/failsafe: remove check around pthread_mutex_init() net/hinic: remove check around pthread_mutex_init() lib/vhost: remove check around pthread_mutex_init() drivers/common/cnxk/roc_bphy_cgx.c | 5 +-- drivers/net/bnxt/bnxt_ethdev.c | 40 ++++--------------- drivers/net/bnxt/bnxt_txq.c | 6 +-- drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 8 +--- drivers/net/bnxt/tf_ulp/bnxt_ulp_tf.c | 6 +-- drivers/net/bnxt/tf_ulp/bnxt_ulp_tfc.c | 6 +-- drivers/net/bnxt/tf_ulp/ulp_fc_mgr.c | 6 +-- drivers/net/bnxt/tf_ulp/ulp_ha_mgr.c | 6 +-- drivers/net/failsafe/failsafe.c | 6 +-- drivers/net/hinic/base/hinic_compat.h | 8 +--- drivers/raw/ifpga/base/opae_intel_max10.c | 5 +-- drivers/raw/ifpga/base/opae_spi_transaction.c | 11 ++--- lib/vhost/socket.c | 14 +------ 13 files changed, 24 insertions(+), 103 deletions(-) -- 2.30.2