OSDN Git Service

mmc: host: sdhci-msm-ice: Initialize local variable in ice_cmdq_cfg()
authorSiba Prasad <sibap@codeaurora.org>
Thu, 23 Mar 2017 11:48:20 +0000 (17:18 +0530)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 10 May 2017 08:48:27 +0000 (01:48 -0700)
commit9578a87b8f9863ec2b6fb6a4f0a8d9e0c5e2203d
tree29b120630623160a6ee178fca7bc9e591b86f40a
parent3d82d66409abb91539bcb9d1f343fcb9d583f2b4
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>
drivers/mmc/host/sdhci-msm-ice.c