Commit 3715ce57 authored by Shawn Lin's avatar Shawn Lin Committed by Ulf Hansson

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: default avatarShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 1e178270
......@@ -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;
......
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