mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-14 00:37:41 -04:00
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>
This commit is contained in:
parent
9cf26ffa4a
commit
53d6ca639d
1 changed files with 2 additions and 2 deletions
4
fdtget.c
4
fdtget.c
|
@ -77,9 +77,9 @@ static int show_data(struct display_info *disp, const char *data, int len)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
size = disp->size;
|
size = disp->size;
|
||||||
if (size == -1)
|
if (size == -1) {
|
||||||
size = (len % 4) == 0 ? 4 : 1;
|
size = (len % 4) == 0 ? 4 : 1;
|
||||||
else if (len % size) {
|
} else if (len % size) {
|
||||||
fprintf(stderr, "Property length must be a multiple of "
|
fprintf(stderr, "Property length must be a multiple of "
|
||||||
"selected data size\n");
|
"selected data size\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue