summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Lin <shawn.lin@rock-chips.com>2018-02-27 09:26:35 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2018-03-15 09:32:30 +0100
commit3715ce57f4d26d09fc1813d157286abc5aa319a5 (patch)
treeca5720bdfd5716f9719ecda1d69ea1578cc791b1
parent1e178270dfcf2b576b0060b382836219dcda83b5 (diff)
mmc: sd: Remove redundant err assignment from mmc_read_switch
Variable err would be firstly initialized by the return value of mmc_sd_switch(). Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r--drivers/mmc/core/sd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c
index d094497480ca..329e6005d9ad 100644
--- a/drivers/mmc/core/sd.c
+++ b/drivers/mmc/core/sd.c
@@ -291,8 +291,6 @@ static int mmc_read_switch(struct mmc_card *card)
return 0;
}
- err = -EIO;
-
status = kmalloc(64, GFP_KERNEL);
if (!status)
return -ENOMEM;