From: Ulf Hansson Date: Tue, 7 Apr 2020 14:39:03 +0000 (+0200) Subject: mmc: s3cmci: Drop redundant code in s3cmci_setup_data() X-Git-Tag: v5.10.7~2504^2~124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f51167c010ea848160c01aa90ed172d8f569c27c;p=platform%2Fkernel%2Flinux-rpi.git mmc: s3cmci: Drop redundant code in s3cmci_setup_data() 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 Acked-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20200407143903.22477-1-ulf.hansson@linaro.org --- diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c index 1e616ae5..444b276 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. */