libfdt: Seval cleanups to parameter checking
David Gibson
david at gibson.dropbear.id.au
Tue May 20 16:32:58 EST 2008
On Tue, May 20, 2008 at 04:23:34PM +1000, David Gibson wrote:
> This patch makes a couple of small cleanups to parameter checking of
> libfdt functions.
>
> - In several functions which take a node offset, we use an
> idiom involving fdt_next_tag() first to check that we have indeed been
> given a node offset. This patch adds a helper function
> _fdt_check_node_offset() to encapsulate this usage of fdt_next_tag().
> - In fdt_rw.c in several places we have the expanded version of the
> RW_CHECK_HEADER() macro for no particular reason. This patch replaces
> those instances with an invocation of the macro; that's what it's for.
>
> Signed-off-by: David Gibson <david at gibson.dropbear.id.au>
Blah, sorry, ignore. Improved version coming.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
More information about the Linuxppc-dev
mailing list