From: Yunlian Jiang <yunl...@chromium.org>

When building with clang, we get warnings like:
checks.c:623:32: error: equality comparison with extraneous parentheses
                        [-Werror,-Wparentheses-equality]
        if ((node->parent->addr_cells == -1))

URL: http://crbug.com/230457
Signed-off-by: Yunlian Jiang <yunl...@chromium.org>
Signed-off-by: Mike Frysinger <vap...@gentoo.org>
---
 checks.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/checks.c b/checks.c
index ee96a25..e66d55c 100644
--- a/checks.c
+++ b/checks.c
@@ -624,11 +624,11 @@ static void check_avoid_default_addr_size(struct check 
*c, struct node *dt,
        if (!reg && !ranges)
                return;
 
-       if ((node->parent->addr_cells == -1))
+       if (node->parent->addr_cells == -1)
                FAIL(c, "Relying on default #address-cells value for %s",
                     node->fullpath);
 
-       if ((node->parent->size_cells == -1))
+       if (node->parent->size_cells == -1)
                FAIL(c, "Relying on default #size-cells value for %s",
                     node->fullpath);
 }
-- 
1.8.4.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to