Commit bf8b8511 authored by Yousong Zhou's avatar Yousong Zhou Committed by Ulf Hansson

mmc: sd: Remove superfluous error code assignment

Signed-off-by: default avatarYousong Zhou <yszhou4tech@gmail.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 8d1ffc8c
...@@ -357,8 +357,6 @@ int mmc_sd_switch_hs(struct mmc_card *card) ...@@ -357,8 +357,6 @@ int mmc_sd_switch_hs(struct mmc_card *card)
if (card->sw_caps.hs_max_dtr == 0) if (card->sw_caps.hs_max_dtr == 0)
return 0; return 0;
err = -EIO;
status = kmalloc(64, GFP_KERNEL); status = kmalloc(64, GFP_KERNEL);
if (!status) { if (!status) {
pr_err("%s: could not allocate a buffer for " pr_err("%s: could not allocate a buffer for "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment