| 221 | } |
| 222 | |
| 223 | int fdt_check_node_offset_(const void *fdt, int offset) |
| 224 | { |
| 225 | if (!can_assume(VALID_INPUT) |
| 226 | && ((offset < 0) || (offset % FDT_TAGSIZE))) |
| 227 | return -FDT_ERR_BADOFFSET; |
| 228 | |
| 229 | if (fdt_next_tag(fdt, offset, &offset) != FDT_BEGIN_NODE) |
| 230 | return -FDT_ERR_BADOFFSET; |
| 231 | |
| 232 | return offset; |
| 233 | } |
| 234 | |
| 235 | int fdt_check_prop_offset_(const void *fdt, int offset) |
| 236 | { |
no test coverage detected