]> git.dujemihanovic.xyz Git - u-boot.git/commit
libfdt: Trivial cleanup for CHECK_HEADER)
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 18 Feb 2008 07:06:31 +0000 (18:06 +1100)
committerGerald Van Baren <vanbaren@cideas.com>
Wed, 19 Mar 2008 01:03:45 +0000 (21:03 -0400)
commitd0ccb9b140b472039732de102fc14597eedb14df
tree121a2e532df523cca768bafaf9cd527a1c00a295
parentfe30a354cdbb808b5f15366a935b151a4ccee74f
libfdt: Trivial cleanup for CHECK_HEADER)

Currently the CHECK_HEADER() macro is defined local to fdt_ro.c.
However, there are a handful of functions (fdt_move, rw_check_header,
fdt_open_into) from other files which could also use it (currently
they open-code something more-or-less identical).  Therefore, this
patch moves CHECK_HEADER() to libfdt_internal.h and uses it in those
places.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
libfdt/fdt.c
libfdt/fdt_ro.c
libfdt/fdt_rw.c
libfdt/libfdt_internal.h