Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 2015 17:18:11 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r284041 - head/contrib/dtc
Message-ID:  <201506051718.t55HIBc3026496@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Fri Jun  5 17:18:10 2015
New Revision: 284041
URL: https://svnweb.freebsd.org/changeset/base/284041

Log:
  Silence clang warning about extraneous parenthesis
  
  Verified that this exists upstream already:
  https://git.kernel.org/cgit/utils/dtc/dtc.git/tree/checks.c#n628
  
  Differential Revision:	https://reviews.freebsd.org/D913
  Reviewed by:	imp

Modified:
  head/contrib/dtc/checks.c

Modified: head/contrib/dtc/checks.c
==============================================================================
--- head/contrib/dtc/checks.c	Fri Jun  5 17:09:59 2015	(r284040)
+++ head/contrib/dtc/checks.c	Fri Jun  5 17:18:10 2015	(r284041)
@@ -624,11 +624,11 @@ static void check_avoid_default_addr_siz
 	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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506051718.t55HIBc3026496>