diff options
author | Shawn Lin <shawn.lin@rock-chips.com> | 2018-02-26 20:26:35 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-03-15 04:32:30 -0400 |
commit | 3715ce57f4d26d09fc1813d157286abc5aa319a5 (patch) | |
tree | ca5720bdfd5716f9719ecda1d69ea1578cc791b1 | |
parent | 1e178270dfcf2b576b0060b382836219dcda83b5 (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.c | 2 |
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) | |||
291 | return 0; | 291 | return 0; |
292 | } | 292 | } |
293 | 293 | ||
294 | err = -EIO; | ||
295 | |||
296 | status = kmalloc(64, GFP_KERNEL); | 294 | status = kmalloc(64, GFP_KERNEL); |
297 | if (!status) | 295 | if (!status) |
298 | return -ENOMEM; | 296 | return -ENOMEM; |