diff options
author | Wolfgang Denk | 2007-04-04 01:49:15 +0200 |
---|---|---|
committer | Wolfgang Denk | 2007-04-04 01:49:15 +0200 |
commit | 94abd7c0583ebe01e799b25f451201deeaab550d (patch) | |
tree | 1c4426983176adecd162f9ea79258a0bb0085a93 /libfdt | |
parent | aea03c4e8c3a21ce43d3faf48a6e6d474c8bdf73 (diff) |
Minor cleanup.
Diffstat (limited to 'libfdt')
-rw-r--r-- | libfdt/Makefile | 3 | ||||
-rw-r--r-- | libfdt/fdt_ro.c | 14 |
2 files changed, 7 insertions, 10 deletions
diff --git a/libfdt/Makefile b/libfdt/Makefile index 418ad6b5ab1..dc411370f5f 100644 --- a/libfdt/Makefile +++ b/libfdt/Makefile @@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk LIB = $(obj)libfdt.a -SOBJS = +SOBJS = COBJS = fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_sw.o fdt_wip.o @@ -44,4 +44,3 @@ include $(SRCTREE)/rules.mk sinclude $(obj).depend ######################################################################### - diff --git a/libfdt/fdt_ro.c b/libfdt/fdt_ro.c index 4b20553da0a..ce01dc700b6 100644 --- a/libfdt/fdt_ro.c +++ b/libfdt/fdt_ro.c @@ -23,12 +23,11 @@ #include "libfdt_internal.h" -#define CHECK_HEADER(fdt) \ - { \ - int err; \ - if ((err = _fdt_check_header(fdt)) != 0) \ - return err; \ - } +#define CHECK_HEADER(fdt) { \ + int err; \ + if ((err = _fdt_check_header(fdt)) != 0) \ + return err; \ +} static int offset_streq(const void *fdt, int offset, const char *s, int len) @@ -255,7 +254,7 @@ struct fdt_property *fdt_get_property(const void *fdt, } while (level >= 0); err = -FDT_ERR_NOTFOUND; - fail: +fail: if (lenp) *lenp = err; return NULL; @@ -330,4 +329,3 @@ uint32_t fdt_next_tag(const void *fdt, int offset, int *nextoffset, char **namep return tag; } - |