From 8aa17b12f29536ea9c8b6ca22c7f153e8d90fa3b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 10 Apr 2022 15:39:41 +0300 Subject: add clang format and run it --- common/fdt.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'common/fdt.c') 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; -- cgit v1.3