summaryrefslogtreecommitdiff
path: root/drivers/mmc/core/sd.c
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2015-09-10 00:33:16 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2015-10-26 15:59:53 +0100
commitbf8b8511af7721e6f81848a1fd1359716602f3b7 (patch)
tree4e92226aad5a2557f520992637a7c62defca756f /drivers/mmc/core/sd.c
parent8d1ffc8c982e4480059ef735e8f15f631e40e80c (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.c2
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)
if (card->sw_caps.hs_max_dtr == 0)
return 0;
- err = -EIO;
-
status = kmalloc(64, GFP_KERNEL);
if (!status) {
pr_err("%s: could not allocate a buffer for "