linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mmc: rtsx: Remove redundant ternary operators
@ 2025-08-27  9:35 Liao Yuanhong
  2025-08-27  9:35 ` [PATCH 1/2] mmc: rtsx_pci: " Liao Yuanhong
  2025-08-27  9:35 ` [PATCH 2/2] mmc: rtsx_usb_sdmmc: " Liao Yuanhong
  0 siblings, 2 replies; 4+ messages in thread
From: Liao Yuanhong @ 2025-08-27  9:35 UTC (permalink / raw)
  To: Ulf Hansson, Avri Altman, Wolfram Sang, Uwe Kleine-König,
	Binbin Zhou, Al Viro, Ricky Wu, Huacai Chen, Jisheng Zhang,
	Nathan Chancellor, Dan Carpenter,
	open list:MULTIMEDIA CARD (MMC), SECURE DIGITAL (SD) AND...,
	open list
  Cc: Liao Yuanhong

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

Liao Yuanhong (2):
  mmc: rtsx_pci: Remove redundant ternary operators
  mmc: rtsx_usb_sdmmc: Remove redundant ternary operators

 drivers/mmc/host/rtsx_pci_sdmmc.c | 2 +-
 drivers/mmc/host/rtsx_usb_sdmmc.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-08-27 13:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-27  9:35 [PATCH 0/2] mmc: rtsx: Remove redundant ternary operators Liao Yuanhong
2025-08-27  9:35 ` [PATCH 1/2] mmc: rtsx_pci: " Liao Yuanhong
2025-08-27  9:35 ` [PATCH 2/2] mmc: rtsx_usb_sdmmc: " Liao Yuanhong
2025-08-27 13:00   ` Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).