[Crosstoolchain-logs] [device-tree-compiler] 24/198: Trivial style fixup

Hector Oron zumbi at moszumanska.debian.org
Thu Dec 8 17:06:49 UTC 2016


This is an automated email from the git hooks/post-receive script.

zumbi pushed a commit to branch upstream/1.4.x
in repository device-tree-compiler.

commit 53d6ca639d1e95d0d62e84b25f3d22d721d1f4a3
Author: David Gibson <david at gibson.dropbear.id.au>
Date:   Fri Feb 3 16:12:02 2012 +1100

    Trivial style fixup
    
    Having braces on an if branch but not the else branch, or vice
    versa is ugly and can trick you when reading the code.
    
    Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
---
 fdtget.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fdtget.c b/fdtget.c
index 48ab615..2c384b6 100644
--- a/fdtget.c
+++ b/fdtget.c
@@ -77,9 +77,9 @@ static int show_data(struct display_info *disp, const char *data, int len)
 		return 0;
 	}
 	size = disp->size;
-	if (size == -1)
+	if (size == -1) {
 		size = (len % 4) == 0 ? 4 : 1;
-	else if (len % size) {
+	} else if (len % size) {
 		fprintf(stderr, "Property length must be a multiple of "
 				"selected data size\n");
 		return -1;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/crosstoolchain/device-tree-compiler.git



More information about the Crosstoolchain-logs mailing list