dm: Fix error handling when unflattening the DT
authorSimon Glass <sjg@chromium.org>
Mon, 12 Jun 2017 12:21:34 +0000 (06:21 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 11 Jul 2017 16:08:20 +0000 (10:08 -0600)
commitc1eb3d59662b27de6030413e819c2bc46c6156fe
treeb74de93df1afc5dc933d3365e0fd50894c4a76ba
parent0be3a3b4732a0d66ff12b5e3abb1644fb884f13f
dm: Fix error handling when unflattening the DT

The error handling code does not current detect an error right away.
Adjust it to return immediately.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Tested-on: Beaver, Jetson-TK1
lib/of_live.c