aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2012-02-03 16:12:02 +1100
committerJon Loeliger <jdl@jdl.com>2012-02-03 08:34:52 -0600
commit53d6ca639d1e95d0d62e84b25f3d22d721d1f4a3 (patch)
tree1337aaaa0377e5ddb19618806cecf598dde31f19
parent9cf26ffa4a9dfa477971f989dcd7392bedbaaaed (diff)
downloaddtc-53d6ca639d1e95d0d62e84b25f3d22d721d1f4a3.tar.gz
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@gibson.dropbear.id.au>
-rw-r--r--fdtget.c4
1 files 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;