diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2012-02-03 16:12:02 +1100 |
---|---|---|
committer | Jon Loeliger <jdl@jdl.com> | 2012-02-03 08:34:52 -0600 |
commit | 53d6ca639d1e95d0d62e84b25f3d22d721d1f4a3 (patch) | |
tree | 1337aaaa0377e5ddb19618806cecf598dde31f19 /fdtget.c | |
parent | 9cf26ffa4a9dfa477971f989dcd7392bedbaaaed (diff) | |
download | device-tree-compiler-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>
Diffstat (limited to 'fdtget.c')
-rw-r--r-- | fdtget.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |