diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2008-02-18 18:09:04 +1100 |
---|---|---|
committer | Gerald Van Baren <vanbaren@cideas.com> | 2008-03-18 21:03:45 -0400 |
commit | 11abe45c48ec3485a6c1a5168ce8d79c3288adc1 (patch) | |
tree | af96850de8fcf02952ce647e8f0921abac20b8d8 /libfdt/fdt_ro.c | |
parent | d0ccb9b140b472039732de102fc14597eedb14df (diff) | |
download | u-boot-imx-11abe45c48ec3485a6c1a5168ce8d79c3288adc1.zip u-boot-imx-11abe45c48ec3485a6c1a5168ce8d79c3288adc1.tar.gz u-boot-imx-11abe45c48ec3485a6c1a5168ce8d79c3288adc1.tar.bz2 |
libfdt: Remove no longer used code from fdt_node_offset_by_compatible()
Since fdt_node_offset_by_compatible() was converted to the new
fdt_next_node() iterator, a chunk of initialization code became
redundant, but was not removed by oversight. This patch cleans it up.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt/fdt_ro.c')
-rw-r--r-- | libfdt/fdt_ro.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/libfdt/fdt_ro.c b/libfdt/fdt_ro.c index 15d5f6b..63fa129 100644 --- a/libfdt/fdt_ro.c +++ b/libfdt/fdt_ro.c @@ -453,20 +453,10 @@ int fdt_node_check_compatible(const void *fdt, int nodeoffset, int fdt_node_offset_by_compatible(const void *fdt, int startoffset, const char *compatible) { - uint32_t tag; - int offset, nextoffset; - int err; + int offset, err; CHECK_HEADER(fdt); - if (startoffset >= 0) { - tag = fdt_next_tag(fdt, startoffset, &nextoffset); - if (tag != FDT_BEGIN_NODE) - return -FDT_ERR_BADOFFSET; - } else { - nextoffset = 0; - } - /* FIXME: The algorithm here is pretty horrible: we scan each * property of a node in fdt_node_check_compatible(), then if * that didn't find what we want, we scan over them again |