diff options
Diffstat (limited to 'common/fdt.c')
| -rw-r--r-- | common/fdt.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/common/fdt.c b/common/fdt.c index 7cec3a4..56b9d04 100644 --- a/common/fdt.c +++ b/common/fdt.c @@ -2,21 +2,19 @@ struct cell_info get_cellinfo(const void *fdt, const int offset) { - return (struct cell_info){ - fdt_size_cells(fdt, offset), - fdt_address_cells(fdt, offset) - }; + return (struct cell_info){ fdt_size_cells(fdt, offset), + fdt_address_cells(fdt, offset) }; } /* how "reg" is interpreted depends on the parent node */ struct cell_info get_reginfo(const void *fdt, const char *path) { const char *i = strrchr(path, '/'); - if(!i) - return (struct cell_info){0, 0}; + if (!i) + return (struct cell_info){ 0, 0 }; size_t baselen = i - path; - if(i == 0) + if (i == 0) /* root node */ baselen = 1; |
