diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2015-09-09 12:33:16 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-10-26 10:59:53 -0400 |
commit | bf8b8511af7721e6f81848a1fd1359716602f3b7 (patch) | |
tree | 4e92226aad5a2557f520992637a7c62defca756f /drivers/mmc/core/sd.c | |
parent | 8d1ffc8c982e4480059ef735e8f15f631e40e80c (diff) |
mmc: sd: Remove superfluous error code assignment
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/core/sd.c')
-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 4e7366ab187f..e28ebf3c1c4b 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c | |||
@@ -357,8 +357,6 @@ int mmc_sd_switch_hs(struct mmc_card *card) | |||
357 | if (card->sw_caps.hs_max_dtr == 0) | 357 | if (card->sw_caps.hs_max_dtr == 0) |
358 | return 0; | 358 | return 0; |
359 | 359 | ||
360 | err = -EIO; | ||
361 | |||
362 | status = kmalloc(64, GFP_KERNEL); | 360 | status = kmalloc(64, GFP_KERNEL); |
363 | if (!status) { | 361 | if (!status) { |
364 | pr_err("%s: could not allocate a buffer for " | 362 | pr_err("%s: could not allocate a buffer for " |