mmc: s3cmci: Drop redundant code in s3cmci_setup_data()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 7 Apr 2020 14:39:03 +0000 (16:39 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:20:56 +0000 (11:20 +0200)
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>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200407143903.22477-1-ulf.hansson@linaro.org
drivers/mmc/host/s3cmci.c

index 1e616ae..444b276 100644 (file)
@@ -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. */