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:
Can Guo 2020-07-28 22:02:46 +08:00
commit 9a0eadf4e9

View file

@ -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;