mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
scsi: ufs-qcom: Do not return uninitialized err value
In func ufs_qcom_unvote_qos_all, err may be returned without being initialized, so give it an initial value to avoid such case. Change-Id: I56425601ae38d322a03af0916760ef2f166c2807 Signed-off-by: Can Guo <cang@codeaurora.org>
This commit is contained in:
parent
4027c201fd
commit
9a0eadf4e9
1 changed files with 1 additions and 1 deletions
|
|
@ -1719,7 +1719,7 @@ static int ufs_qcom_unvote_qos_all(struct ufs_hba *hba)
|
|||
struct ufs_qcom_host *host = ufshcd_get_variant(hba);
|
||||
struct ufs_qcom_qos_req *ufs_qos_req = host->ufs_qos;
|
||||
struct qos_cpu_group *qcg;
|
||||
int err, i;
|
||||
int err = 0, i;
|
||||
|
||||
if (!host->ufs_qos)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue