提交 3715ce57 编写于 作者: S Shawn Lin 提交者: 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: NShawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 1e178270
...@@ -291,8 +291,6 @@ static int mmc_read_switch(struct mmc_card *card) ...@@ -291,8 +291,6 @@ static int mmc_read_switch(struct mmc_card *card)
return 0; return 0;
} }
err = -EIO;
status = kmalloc(64, GFP_KERNEL); status = kmalloc(64, GFP_KERNEL);
if (!status) if (!status)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册