[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220424090422.97070-1-wanjiabing@vivo.com>
Date: Sun, 24 Apr 2022 17:04:22 +0800
From: Wan Jiabing <wanjiabing@...o.com>
To: Ludovic Desroches <ludovic.desroches@...rochip.com>,
Ulf Hansson <ulf.hansson@...aro.org>,
Nicolas Ferre <nicolas.ferre@...rochip.com>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Claudiu Beznea <claudiu.beznea@...rochip.com>,
linux-mmc@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Cc: kael_w@...h.net, Wan Jiabing <wanjiabing@...o.com>
Subject: [PATCH] mmc: atmel-mci: simplify if-if to if-else
Use if and else instead of if(A) and if (!A).
Signed-off-by: Wan Jiabing <wanjiabing@...o.com>
---
drivers/mmc/host/atmel-mci.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index 807177c953f3..98893ccad4bd 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -1125,8 +1125,7 @@ atmci_prepare_data_dma(struct atmel_mci *host, struct mmc_data *data)
chan = host->dma.chan;
if (chan)
host->data_chan = chan;
-
- if (!chan)
+ else
return -ENODEV;
if (data->flags & MMC_DATA_READ) {
--
2.35.1
Powered by blists - more mailing lists