]> git.baikalelectronics.ru Git - uboot.git/commit
boot_fit: Change return value from FDT_ERROR to -EINVAL in fdt_offset()
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Fri, 4 Aug 2017 20:47:02 +0000 (05:47 +0900)
committerTom Rini <trini@konsulko.com>
Sun, 13 Aug 2017 19:17:34 +0000 (15:17 -0400)
commitb865733f8e22a739a5c26bab316cd7c9fe90fa65
tree04f7157cc4d23c45d985f3ba4efd92e1d6d3292c
parent556927907858eee2b676b1b5e46731ecf9cbb824
boot_fit: Change return value from FDT_ERROR to -EINVAL in fdt_offset()

FDT_ERROR is defined as unsigned long. However, since the return value of
fdt_offset() is int, a warning will occur when compiling. Also, it is better
to use -EINVAL than FDT_ERROR.
This fixes this problem by change return value from FDT_ERROR to -EINVAL.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
CC: Franklin S Cooper Jr <fcooper@ti.com>
Reviewed-by: Franklin S Cooper Jr <fcooper@ti.com>
common/boot_fit.c