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

Commit 98199159 authored by Can Guo's avatar Can Guo
Browse files

mmc: core: add missing return statement



A return statement in function mmc_calc_max_discard
is missing during driver porting. This change fixes
it by adding it back.

Change-Id: I4b03caa5a8b3bc7d70d7a502787047b43c216eb4
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent cc8c86a2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4134,6 +4134,7 @@ unsigned int mmc_calc_max_discard(struct mmc_card *card)

	if (!host->max_busy_timeout ||
			(host->caps2 & MMC_CAP2_MAX_DISCARD_SIZE))
		return UINT_MAX;

	/*
	 * Without erase_group_def set, MMC erase timeout depends on clock