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 7396346060; Sun, 12 Jan 2025 19:58:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CAF7840265; Sun, 12 Jan 2025 19:58:57 +0100 (CET) Received: from mail-lj1-f226.google.com (mail-lj1-f226.google.com [209.85.208.226]) by mails.dpdk.org (Postfix) with ESMTP id A7CF94025D for ; Sun, 12 Jan 2025 19:58:56 +0100 (CET) Received: by mail-lj1-f226.google.com with SMTP id 38308e7fff4ca-304d9a1f198so29391571fa.0 for ; Sun, 12 Jan 2025 10:58:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736708336; x=1737313136; 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=mGw2eRkNNI/CJYxEUbH5JcibHkAYNcr0nmATckfIHdQ=; b=PVsW5q/yKf1Ri6X41Qc52S3eptCseeAMDdUTwc19UKDryQCutBjdy+sLLlxZ53ZxEE 2N6CworAD6YtFVvWaH1M3MoWFdWTzOXJM5rUrIBqUvJXPuhpRKLvoULBQiA9tnxGVYr6 AsWhx30NTIgBMQ8s5xktgRoemlAx7voJ8GVXGNp410QdzKz4RKnlJdb7FnPE/XQFn+Ow HEyxW0UnoTgNl2pM2H5t3HNsg/DT/jI/yBymzVPPKkGYsmvLi5WzwAFDo3wDxI/Rc7tP jRgkx2CS4RjBdV5mZs6cgCvNqtJDcyFXBlbz5IzM/B24+OI5NOwA4VnPNk0j665nJHh8 JI3A== X-Gm-Message-State: AOJu0YzTkRqwhL1mA2B6CB3SG7FmCxiqmdmZhTAHGbtn7cPNORNCyOE9 exU0uvY0Cn0+POuGRQ1RV+GqRS5y1QFjpu+Qlz9IqR6to7VX46BWT6QAjxBtiTP1jc/H5XF/+e7 h4znyzKlhKJL/kfgJMUKX8QQbOAad+Ke3 X-Gm-Gg: ASbGncuEI1sUwO+qYfFRnZLmYTpd4Z1HDTC6DEoL7bf5+QHLlNJttSvZ1zQmN+n25GZ vT3XIO0+wfDlIj2tX+0CJW/DaiqljNwnEa223QDUoNWh8DgvfWRqyLohX63WhOi99zzuwkuysU5 ocny9+fuq7+xaqOvH1XH44Xgl8ux/DTzMOnwnyXLl1Ly/YMGjoklODeB0b6r17qWP3A6BoNGE98 715qzWsyth9Uv364enFFySoTIW0aWBrQNIvSJBbr3gEU96tYMXO3CAHfkpi4ApOXtDNDv9cNRHI ktu1Ko5mIzFS1OOxTTRxrD1h/g== X-Google-Smtp-Source: AGHT+IFQ1ibSRWeQOhFG52d8c0sNHhbNypW/jdR31rKOadMvTze7atyNKp3SQDiWC1q2kWYmaPeOpa3WK8cm X-Received: by 2002:a2e:bc26:0:b0:300:31db:a770 with SMTP id 38308e7fff4ca-305f45f5aadmr61939171fa.26.1736708335728; Sun, 12 Jan 2025 10:58:55 -0800 (PST) Received: from smtpservice.6wind.com ([185.13.181.2]) by smtp-relay.gmail.com with ESMTP id 38308e7fff4ca-305ff1ecd25sm1886471fa.41.2025.01.12.10.58.55; Sun, 12 Jan 2025 10:58:55 -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 7313113D74; Sun, 12 Jan 2025 19:58:55 +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 0/6] remove check around pthread_mutex_init() Date: Sun, 12 Jan 2025 19:58:36 +0100 Message-Id: <20250112185842.9752-1-otilibil@eurecom.fr> X-Mailer: git-send-email 2.30.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 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 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 | 10 +---- lib/vhost/socket.c | 14 +------ 13 files changed, 22 insertions(+), 104 deletions(-) -- 2.30.2