[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250827093530.416071-2-liaoyuanhong@vivo.com>
Date: Wed, 27 Aug 2025 17:35:25 +0800
From: Liao Yuanhong <liaoyuanhong@...o.com>
To: Ulf Hansson <ulf.hansson@...aro.org>,
Binbin Zhou <zhoubinbin@...ngson.cn>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Avri Altman <avri.altman@....com>,
Huacai Chen <chenhuacai@...nel.org>,
Al Viro <viro@...iv.linux.org.uk>,
Uwe Kleine-König <u.kleine-koenig@...libre.com>,
linux-mmc@...r.kernel.org (open list:MULTIMEDIA CARD (MMC), SECURE DIGITAL (SD) AND...),
linux-kernel@...r.kernel.org (open list)
Cc: Liao Yuanhong <liaoyuanhong@...o.com>
Subject: [PATCH 1/2] mmc: rtsx_pci: Remove redundant ternary operators
Remove redundant ternary operators to clean up the code.
Signed-off-by: Liao Yuanhong <liaoyuanhong@...o.com>
---
drivers/mmc/host/rtsx_pci_sdmmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/host/rtsx_pci_sdmmc.c b/drivers/mmc/host/rtsx_pci_sdmmc.c
index dc2587ff8519..65d40ea9ce93 100644
--- a/drivers/mmc/host/rtsx_pci_sdmmc.c
+++ b/drivers/mmc/host/rtsx_pci_sdmmc.c
@@ -1122,7 +1122,7 @@ static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
break;
}
- host->initial_mode = (ios->clock <= 1000000) ? true : false;
+ host->initial_mode = ios->clock <= 1000000;
host->clock = ios->clock;
rtsx_pci_switch_clock(pcr, ios->clock, host->ssc_depth,
--
2.34.1
Powered by blists - more mailing lists