Browse Source

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>
main
David Gibson 13 years ago committed by Jon Loeliger
parent
commit
53d6ca639d
  1. 4
      fdtget.c

4
fdtget.c

@ -77,9 +77,9 @@ static int show_data(struct display_info *disp, const char *data, int len) @@ -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;

Loading…
Cancel
Save