]> git.dujemihanovic.xyz Git - u-boot.git/commit
fdt: Add a check to fdt_print() for coverity
authorSimon Glass <sjg@chromium.org>
Wed, 7 Jun 2017 16:28:42 +0000 (10:28 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 12 Jun 2017 12:38:08 +0000 (08:38 -0400)
commit9f95267271c0b6cff64c5ac1b308e1e0281e9e3a
treef8cf335e7d18adc330bc388520c22284c492f74a
parent72c98ed1ab48dbd2f3129160413dcc10565aae0c
fdt: Add a check to fdt_print() 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: 163248)
cmd/fdt.c