diff options
Diffstat (limited to 'libfdt/fdt.c')
-rw-r--r-- | libfdt/fdt.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libfdt/fdt.c b/libfdt/fdt.c index 660e2c1baf9..cfa1989d8e5 100644 --- a/libfdt/fdt.c +++ b/libfdt/fdt.c @@ -188,10 +188,7 @@ const char *_fdt_find_string(const char *strtab, int tabsize, const char *s) int fdt_move(const void *fdt, void *buf, int bufsize) { - int err = fdt_check_header(fdt); - - if (err) - return err; + CHECK_HEADER(fdt); if (fdt_totalsize(fdt) > bufsize) return -FDT_ERR_NOSPACE; |