Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;