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

Commit 2ffe104c authored by Asutosh Das's avatar Asutosh Das
Browse files

mmc: core: remove duplicate code in mmc_rescan



If the card is removed, the wakelock has to be held for
an extended period of time to enable the user-space to
respond. The code to extend the wakelock has been
duplicated. This patch removes this duplicate code.

CRs-fixed: 684724
Change-Id: I96e4e9dec46ada7853724c36f0c2c6329f696e5d
Signed-off-by: default avatarAsutosh Das <asutoshd@codeaurora.org>
parent df0a158a
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -3380,13 +3380,6 @@ void mmc_rescan(struct work_struct *work)
	if (host->bus_dead)
		extend_wakelock = 1;


	/* If the card was removed the bus will be marked
	 * as dead - extend the wakelock so userspace
	 * can respond */
	if (host->bus_dead)
		extend_wakelock = 1;

	/*
	 * Let mmc_bus_put() free the bus/bus_ops if we've found that
	 * the card is no longer present.