dtc: remove extra parentheses to pass clang check
authorYunlian Jiang <yunlian@google.com>
Thu, 11 Apr 2013 18:02:50 +0000 (11:02 -0700)
committerDanny Wood <danwood76@gmail.com>
Thu, 28 Jan 2021 12:29:42 +0000 (12:29 +0000)
BUG=chromium:230457
TEST=the clang warning is gone

Change-Id: If9536c181d564e6ee3c1b5777dd78ad3a57a16c7
Reviewed-on: https://gerrit.chromium.org/gerrit/47879
Reviewed-by: Han Shen <shenhan@chromium.org>
Commit-Queue: Yunlian Jiang <yunlian@chromium.org>
Tested-by: Yunlian Jiang <yunlian@chromium.org>
scripts/dtc/checks.c

index ee96a2519eff6f39d2f093ae88774c612d71906e..e66d55c767a6aecf9f84926122284d6e2d692568 100644 (file)
@@ -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);
 }