| 145 | } |
| 146 | |
| 147 | int fdt_check_node_offset_(const void *fdt, int offset) |
| 148 | { |
| 149 | if ((offset < 0) || (offset % FDT_TAGSIZE) |
| 150 | || (fdt_next_tag(fdt, offset, &offset) != FDT_BEGIN_NODE)) |
| 151 | return -FDT_ERR_BADOFFSET; |
| 152 | |
| 153 | return offset; |
| 154 | } |
| 155 | |
| 156 | int fdt_check_prop_offset_(const void *fdt, int offset) |
| 157 | { |
no test coverage detected