From 30888be44b67c7b408d8bdc988a5a49d50eebc7d Mon Sep 17 00:00:00 2001 From: Yunlian Jiang Date: Thu, 11 Apr 2013 11:02:50 -0700 Subject: [PATCH] dtc: remove extra parentheses to pass clang check BUG=chromium:230457 TEST=the clang warning is gone Change-Id: If9536c181d564e6ee3c1b5777dd78ad3a57a16c7 Reviewed-on: https://gerrit.chromium.org/gerrit/47879 Reviewed-by: Han Shen Commit-Queue: Yunlian Jiang Tested-by: Yunlian Jiang --- scripts/dtc/checks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/dtc/checks.c b/scripts/dtc/checks.c index ee96a2519ef..e66d55c767a 100644 --- a/scripts/dtc/checks.c +++ b/scripts/dtc/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); } -- 2.20.1