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

Commit 1326d1bb authored by Siba Prasad's avatar Siba Prasad Committed by Veerabhadrarao Badiganti
Browse files

mmc: host: sdhci-msm-ice: Initialize local variable in ice_cmdq_cfg()



Uninitialized key_index local variable in sdhci_msm_ice_cmdq_cfg() would
be passed as it is to sdhci_msm_ice_hci_update_cmdq_cfg()
/sdhci_msm_ice_update_cfg() when request is not valid. So initialize
this variable with right value.

Without this change, its causing KW warning.

Change-Id: Ibf2f3973e8e2143b303196133758534846437b46
Signed-off-by: default avatarSiba Prasad <sibap@codeaurora.org>
parent 57056d5b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -377,7 +377,7 @@ int sdhci_msm_ice_cmdq_cfg(struct sdhci_host *host,
	struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
	struct sdhci_msm_host *msm_host = pltfm_host->priv;
	int err = 0;
	short key_index;
	short key_index = 0;
	sector_t lba = 0;
	unsigned int bypass = SDHCI_MSM_ICE_ENABLE_BYPASS;
	struct request *req;