Message ID | 20230717073429.2115015-1-djakov@kernel.org |
---|---|
State | New |
Headers | show |
Series | interconnect: qcom: icc-rpm: Initialize ret variable to fix smatch error | expand |
diff --git a/drivers/interconnect/qcom/icc-rpm.c b/drivers/interconnect/qcom/icc-rpm.c index 612390b9eb18..6718cc648d75 100644 --- a/drivers/interconnect/qcom/icc-rpm.c +++ b/drivers/interconnect/qcom/icc-rpm.c @@ -206,7 +206,7 @@ static int qcom_icc_qos_set(struct icc_node *node) static int qcom_icc_rpm_set(struct qcom_icc_node *qn, u64 *bw) { - int ret, rpm_ctx = 0; + int ret = 0, rpm_ctx = 0; u64 bw_bps; if (qn->qos.ap_owned)