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: Siba Prasad <sibap@codeaurora.org>
This commit is contained in:
parent
3d82d66409
commit
9578a87b8f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue