]> git.baikalelectronics.ru Git - uboot.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)
commitb4a3d24c5e37e7c29d5b4857f616c5402a51430c
treef8cf335e7d18adc330bc388520c22284c492f74a
parent4e5299b4dc5727536ecee556ac1fd25b498efb30
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