Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <ulf.hansson@linaro.org>
Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Link: https://lore.kernel.org/r/20200407143903.22477-1-ulf.hansson@linaro.org

-7
-7
drivers/mmc/host/s3cmci.c
··· 958 958 { 959 959 u32 dcon, imsk, stoptries = 3; 960 960 961 - /* write DCON register */ 962 - 963 - if (!data) { 964 - writel(0, host->base + S3C2410_SDIDCON); 965 - return 0; 966 - } 967 - 968 961 if ((data->blksz & 3) != 0) { 969 962 /* We cannot deal with unaligned blocks with more than 970 963 * one block being transferred. */