summaryrefslogtreecommitdiff
path: root/drivers/interconnect
diff options
context:
space:
mode:
authorGeorgi Djakov <djakov@kernel.org>2023-07-17 15:55:34 +0300
committerGeorgi Djakov <djakov@kernel.org>2023-07-17 16:21:33 +0300
commitc73e60e07119408af898f010d6a52b49c9d97cbf (patch)
treeb00c24112dbfb40e91cfab639dee0c4e006af309 /drivers/interconnect
parentcff66ace51e3acfcba3ab03f92adc9510830c365 (diff)
downloadlinux-c73e60e07119408af898f010d6a52b49c9d97cbf.tar.xz
interconnect: qcom: icc-rpm: Explicitly return 0 at the end of the function
Fix the following smatch error: drivers/interconnect/qcom/icc-rpm.c:243 qcom_icc_rpm_set() error: uninitialized symbol 'ret'. Fixes: 32846c4a8f2a ("interconnect: qcom: icc-rpm: Set bandwidth on both contexts") Reviewed-by: Stephan Gerhold <stephan@gerhold.net> Link: https://lore.kernel.org/r/20230717125534.2455745-1-djakov@kernel.org Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'drivers/interconnect')
-rw-r--r--drivers/interconnect/qcom/icc-rpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/interconnect/qcom/icc-rpm.c b/drivers/interconnect/qcom/icc-rpm.c
index 612390b9eb18..2c16917ba1fd 100644
--- a/drivers/interconnect/qcom/icc-rpm.c
+++ b/drivers/interconnect/qcom/icc-rpm.c
@@ -240,7 +240,7 @@ static int qcom_icc_rpm_set(struct qcom_icc_node *qn, u64 *bw)
}
}
- return ret;
+ return 0;
}
/**