scsi: ufs: ufs-qcom-ice: Initialize local variable in ice_cfg_start()
Previously local variable ice_set in ufs_qcom_ice_cfg_start() function was initialized only if qcom_host->ice.vops->config_start was set. If that was not set, then the uninitialized value of ice_set might have lead to incorrect configuration of ICE. So initialize the variable regardless the value of config_start. Change-Id: I16692902d9f5b8df00ae2ffc7c363413d13e932a Signed-off-by: Siba Prasad <sibap@codeaurora.org>
This commit is contained in:
parent
3d82d66409
commit
b9ffa0f20e
1 changed files with 1 additions and 1 deletions
|
@ -394,8 +394,8 @@ int ufs_qcom_ice_cfg_start(struct ufs_qcom_host *qcom_host,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (qcom_host->ice.vops->config_start) {
|
|
||||||
memset(&ice_set, 0, sizeof(ice_set));
|
memset(&ice_set, 0, sizeof(ice_set));
|
||||||
|
if (qcom_host->ice.vops->config_start) {
|
||||||
|
|
||||||
spin_lock_irqsave(
|
spin_lock_irqsave(
|
||||||
&qcom_host->ice_work_lock, flags);
|
&qcom_host->ice_work_lock, flags);
|
||||||
|
|
Loading…
Add table
Reference in a new issue