Commit 42cdeb69 authored by Shawn Guo's avatar Shawn Guo Committed by Georgi Djakov

interconnect: icc-rpm: Use NOC_QOS_MODE_INVALID for qos_mode check

Use NOC_QOS_MODE_INVALID for invalid qos_mode check to improve the
readability.
Signed-off-by: default avatarShawn Guo <shawn.guo@linaro.org>
Link: https://lore.kernel.org/r/20211206075808.18124-2-shawn.guo@linaro.orgSigned-off-by: default avatarGeorgi Djakov <djakov@kernel.org>
parent b95b668e
...@@ -76,7 +76,7 @@ static int qcom_icc_set_bimc_qos(struct icc_node *src, u64 max_bw) ...@@ -76,7 +76,7 @@ static int qcom_icc_set_bimc_qos(struct icc_node *src, u64 max_bw)
provider = src->provider; provider = src->provider;
qp = to_qcom_provider(provider); qp = to_qcom_provider(provider);
if (qn->qos.qos_mode != -1) if (qn->qos.qos_mode != NOC_QOS_MODE_INVALID)
mode = qn->qos.qos_mode; mode = qn->qos.qos_mode;
/* QoS Priority: The QoS Health parameters are getting considered /* QoS Priority: The QoS Health parameters are getting considered
...@@ -137,7 +137,7 @@ static int qcom_icc_set_noc_qos(struct icc_node *src, u64 max_bw) ...@@ -137,7 +137,7 @@ static int qcom_icc_set_noc_qos(struct icc_node *src, u64 max_bw)
return 0; return 0;
} }
if (qn->qos.qos_mode != -1) if (qn->qos.qos_mode != NOC_QOS_MODE_INVALID)
mode = qn->qos.qos_mode; mode = qn->qos.qos_mode;
if (mode == NOC_QOS_MODE_FIXED) { if (mode == NOC_QOS_MODE_FIXED) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment