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

Commit 48fcab8a authored by Sarthak Garg's avatar Sarthak Garg
Browse files

mmc: sdhci-msm: Remove mmc host NULL check



Remove mmc host NULL check from host runtime resume function
to fix KW null pointer dereference warning, as mmc host
cannot be null.

Change-Id: I037df95be66c2fec975b82035cdc817a20e4676d
Signed-off-by: default avatarSarthak Garg <sartgarg@codeaurora.org>
parent c74c4c1e
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -5977,8 +5977,7 @@ static int sdhci_msm_runtime_resume(struct device *dev)
		goto skip_ice_resume;
		goto skip_ice_resume;
	}
	}


	if (host->mmc &&
	if (host->mmc->ios.timing == MMC_TIMING_MMC_HS400)
			(host->mmc->ios.timing == MMC_TIMING_MMC_HS400))
		sdhci_msm_toggle_fifo_write_clk(host);
		sdhci_msm_toggle_fifo_write_clk(host);


	if (host->is_crypto_en) {
	if (host->is_crypto_en) {