diff options
| author | Nathan Chancellor <natechancellor@gmail.com> | 2019-09-27 00:11:22 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2020-02-02 01:41:04 +0200 |
| commit | f6ba5f662e31aeb0db0bb1fd930a0fdf268e133d (patch) | |
| tree | 3bf21ef3e9a7303fd045525cd1314232cdceaec5 | |
| parent | 4ac7a91be399074b25cdac8cfc972f9d7637b8e1 (diff) | |
msm: msm_bus: Remove unnecessary parentheses in get_node
Clang warns:
../drivers/soc/qcom/msm_bus/msm_bus_rules.c:68:12: warning: equality
comparison with extraneous parentheses [-Wparentheses-equality]
if ((id == NB_ID)) {
~~~^~~~~~~~
../drivers/soc/qcom/msm_bus/msm_bus_rules.c:68:12: note: remove
extraneous parentheses around the comparison to silence this warning
if ((id == NB_ID)) {
~ ^ ~
../drivers/soc/qcom/msm_bus/msm_bus_rules.c:68:12: note: use '=' to turn
this equality comparison into an assignment
if ((id == NB_ID)) {
^~
=
../drivers/soc/qcom/msm_bus/msm_bus_rules.c:69:24: warning: equality
comparison with extraneous parentheses [-Wparentheses-equality]
if ((node_it->data == data)) {
~~~~~~~~~~~~~~^~~~~~~
../drivers/soc/qcom/msm_bus/msm_bus_rules.c:69:24: note: remove
extraneous parentheses around the comparison to silence this warning
if ((node_it->data == data)) {
~ ^ ~
../drivers/soc/qcom/msm_bus/msm_bus_rules.c:69:24: note: use '=' to turn
this equality comparison into an assignment
if ((node_it->data == data)) {
^~
=
Fixes: 8461868fb6ff ("platform: msm: msm_bus: Add support for bus scaling")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
| -rw-r--r-- | drivers/soc/qcom/msm_bus/msm_bus_rules.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/soc/qcom/msm_bus/msm_bus_rules.c b/drivers/soc/qcom/msm_bus/msm_bus_rules.c index 43a892bbd27c..cafddcd65561 100644 --- a/drivers/soc/qcom/msm_bus/msm_bus_rules.c +++ b/drivers/soc/qcom/msm_bus/msm_bus_rules.c @@ -65,8 +65,8 @@ static struct rule_node_info *get_node(u32 id, void *data) list_for_each_entry(node_it, &node_list, link) { if (node_it->id == id) { - if ((id == NB_ID)) { - if ((node_it->data == data)) { + if (id == NB_ID) { + if (node_it->data == data) { node_match = node_it; break; } |
