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 A928F46061; Sun, 12 Jan 2025 21:20:31 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3D0E1402EA; Sun, 12 Jan 2025 21:20:31 +0100 (CET) Received: from mail-ej1-f97.google.com (mail-ej1-f97.google.com [209.85.218.97]) by mails.dpdk.org (Postfix) with ESMTP id 7670F4029F for ; Sun, 12 Jan 2025 21:20:29 +0100 (CET) Received: by mail-ej1-f97.google.com with SMTP id a640c23a62f3a-ab2e308a99bso435935266b.1 for ; Sun, 12 Jan 2025 12:20:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736713229; x=1737318029; h=content-transfer-encoding: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=J67N2Whyv3wJzM7xCHy2U2Xg8jWmpmGao/JwkEfM7gI=; b=u4ZUZrk2iJcZg/VbexVXFFwJ649joe4KoqfJyOSlKx1fPvAb7vlrDpfMMeu6a65amL iWQs8kSQfPLqyCy75JoR7x0Sr2kN9k/RcoNfgh54eKm5s73YgnVJS+yEOG1/t9fyiU7u hGsPYGGTQgSEK+5xg6rSw8XI11kOZHJMx6ogbxuuDHEMdUza0/w+ujO7RPrwnssPwlvX pVrHDdC9AavHvclvQKlkuLiEQkYwaz76mq460Q+KfcCV/jslxJyM5K2abyDaQHo3udWq QnAWOD1yXDbZQ1hfJXakMiMhkUyy+0SIDHVJ9ymOhpwq8s6cJPIxT2gwlyWr5zKko6YQ 4enQ== X-Gm-Message-State: AOJu0YxgceA8d4IIbmrzy1/KqUIVG6nGT7DWaghf5KU7+8Xn3DGn9w+Q JO1IUshit41AtnUCeJMtS8p4Voqc9Wuaejc4PtvxYF07IhwtPDnh5/BPY9pm+LcTSEY/T9lCkkS 1zYtBFKsSAIThB0J2zUpTxeji1w3uGWaL X-Gm-Gg: ASbGncv7y2TILRvaEgpt9kuEd36fduXVEYHcQaMiI5Cuw8SK7Ak3LMUPZDN2Y8d4BIM z4GF5fT/1t6I2yjSiz0kvu/meH0IwV/BPd114AETSnFvqFXQixQGSYCdLJuoQDXYOfvcx9pRbPP blxWSuYowgOdlypN0MEkkQhJJSl4Za5YY32k6/XuiuYs6Jvwn9pcrvEo+1rOMm/wsTOClgiUckD s6aaqgagnIbgucx+nMrylFwZPWtfTCh68CfBJEsQZDfpiCXbrfJcivRGglHU8M9a6v63/SW+66J R9xjbDGI7eKcUXJ7wDkurFB/8g== X-Google-Smtp-Source: AGHT+IFzCDa1TMqRM7vIhM/VYrjxXpw/OY3M7h7L4urrHgf5ez35RTUdsQVGk9SqV8shJ3pYBUzOhlMU0ecJ X-Received: by 2002:a17:907:3d91:b0:aa6:7ff9:d248 with SMTP id a640c23a62f3a-ab2c3c452c8mr1347521666b.8.1736713229077; Sun, 12 Jan 2025 12:20:29 -0800 (PST) Received: from smtpservice.6wind.com ([185.13.181.2]) by smtp-relay.gmail.com with ESMTP id a640c23a62f3a-ab2c906006asm37124566b.43.2025.01.12.12.20.29; Sun, 12 Jan 2025 12:20:29 -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 E219113DDA; Sun, 12 Jan 2025 21:20:28 +0100 (CET) From: Ariel Otilibili To: dev@dpdk.org Cc: Stephen Hemminger , Thomas Monjalon , David Marchand , Ariel Otilibili , Maxime Coquelin , 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 v3 0/6] remove check around pthread_mutex_init() Date: Sun, 12 Jan 2025 21:20:15 +0100 Message-Id: <20250112202021.179634-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 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 --- v3 * fix style issues v2 (https://inbox.dpdk.org/dev/20250112193043.67372-1-otilibil@eurecom.fr/) * 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 | 7 +--- lib/vhost/socket.c | 14 +------ 13 files changed, 22 insertions(+), 101 deletions(-) -- 2.30.2