lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250902132359.83059-1-liaoyuanhong@vivo.com>
Date: Tue,  2 Sep 2025 21:23:40 +0800
From: Liao Yuanhong <liaoyuanhong@...o.com>
To: "James E.J. Bottomley" <James.Bottomley@...senPartnership.com>,
	"Martin K. Petersen" <martin.petersen@...cle.com>,
	Kashyap Desai <kashyap.desai@...adcom.com>,
	Sumit Saxena <sumit.saxena@...adcom.com>,
	Shivasharan S <shivasharan.srikanteshwara@...adcom.com>,
	Chandrakanth patil <chandrakanth.patil@...adcom.com>,
	"K. Y. Srinivasan" <kys@...rosoft.com>,
	Haiyang Zhang <haiyangz@...rosoft.com>,
	Wei Liu <wei.liu@...nel.org>,
	Dexuan Cui <decui@...rosoft.com>,
	Ingo Molnar <mingo@...nel.org>,
	Thomas Gleixner <tglx@...utronix.de>,
	Christophe JAILLET <christophe.jaillet@...adoo.fr>,
	Khalid Aziz <khalid@...ehiking.org>,
	Bart Van Assche <bvanassche@....org>,
	Easwar Hariharan <easwar.hariharan@...ux.microsoft.com>,
	Damien Le Moal <dlemoal@...nel.org>,
	Prateek Singh Rathore <prateek.singh.rathore@...il.com>,
	Geoff Levand <geoff@...radead.org>,
	Al Viro <viro@...iv.linux.org.uk>,
	Thomas Fourier <fourier.thomas@...il.com>,
	linux-scsi@...r.kernel.org (open list:SCSI SUBSYSTEM),
	linux-kernel@...r.kernel.org (open list),
	megaraidlinux.pdl@...adcom.com (open list:MEGARAID SCSI/SAS DRIVERS),
	linux-hyperv@...r.kernel.org (open list:Hyper-V/Azure CORE AND DRIVERS)
Cc: Liao Yuanhong <liaoyuanhong@...o.com>
Subject: [PATCH 0/6] scsi: Remove redundant ternary operators

For ternary operators in the form of "a ? true : false" or
"a ? false : true", if 'a' itself returns a boolean result, the ternary
operator can be omitted. Remove redundant ternary operators to clean up the
code.

Liao Yuanhong (6):
  scsi: arcmsr: Remove redundant ternary operators
  scsi: csiostor: Remove redundant ternary operators
  scsi: isci: Remove redundant ternary operators
  scsi: megaraid_sas: Remove redundant ternary operators
  scsi: scsi_transport_fc: Remove redundant ternary operators
  scsi: storvsc: Remove redundant ternary operators

 drivers/scsi/arcmsr/arcmsr_hba.c            | 11 +++++------
 drivers/scsi/csiostor/csio_scsi.c           |  2 +-
 drivers/scsi/isci/request.c                 |  2 +-
 drivers/scsi/megaraid/megaraid_sas_base.c   |  4 ++--
 drivers/scsi/megaraid/megaraid_sas_fusion.c |  4 ++--
 drivers/scsi/scsi_transport_fc.c            |  2 +-
 drivers/scsi/storvsc_drv.c                  |  4 ++--
 7 files changed, 14 insertions(+), 15 deletions(-)

-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ