]> git.dujemihanovic.xyz Git - u-boot.git/commit
fdt: Add a check to do_fdt() for coverity
authorSimon Glass <sjg@chromium.org>
Wed, 7 Jun 2017 16:28:41 +0000 (10:28 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 12 Jun 2017 12:38:08 +0000 (08:38 -0400)
commit72c98ed1ab48dbd2f3129160413dcc10565aae0c
tree1d7101f068c8b0aac00cbdacf59464c00cbc9101
parent96725153197f32e00a07d0fe1bfbab8662d94cb9
fdt: Add a check to do_fdt() for coverity

We know that fdt_getprop() does not return NULL when len is > 0 but
coverity does not. Add an extra check to keep it happy.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 163249)
Fixes: bc80295b (fdt: Add get commands to fdt)
cmd/fdt.c