diff mbox series

mmc: s3cmci: Drop redundant code in s3cmci_setup_data()

Message ID 20200407143903.22477-1-ulf.hansson@linaro.org (mailing list archive)
State New, archived
Headers show
Series mmc: s3cmci: Drop redundant code in s3cmci_setup_data() | expand

Commit Message

Ulf Hansson April 7, 2020, 2:39 p.m. UTC
The in-parameter struct mmc_data *data is never NULL, because the caller
always provides a valid pointer. Hence drop the corresponding redundant
code.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 drivers/mmc/host/s3cmci.c | 7 -------
 1 file changed, 7 deletions(-)

Comments

Krzysztof Kozlowski April 9, 2020, 12:10 p.m. UTC | #1
On Tue, Apr 07, 2020 at 04:39:03PM +0200, Ulf Hansson wrote:
> The in-parameter struct mmc_data *data is never NULL, because the caller
> always provides a valid pointer. Hence drop the corresponding redundant
> code.
> 
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
> ---
>  drivers/mmc/host/s3cmci.c | 7 -------
>  1 file changed, 7 deletions(-)

Acked-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c
index 1e616ae56b13..444b2769ae2c 100644
--- a/drivers/mmc/host/s3cmci.c
+++ b/drivers/mmc/host/s3cmci.c
@@ -958,13 +958,6 @@  static int s3cmci_setup_data(struct s3cmci_host *host, struct mmc_data *data)
 {
 	u32 dcon, imsk, stoptries = 3;
 
-	/* write DCON register */
-
-	if (!data) {
-		writel(0, host->base + S3C2410_SDIDCON);
-		return 0;
-	}
-
 	if ((data->blksz & 3) != 0) {
 		/* We cannot deal with unaligned blocks with more than
 		 * one block being transferred. */