[PATCH 0/6] remove check around pthread_mutex_init()
Ariel Otilibili
otilibil at eurecom.fr
Sun Jan 12 19:58:36 CET 2025
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
More information about the dev
mailing list