state: Fix error return value
This ports the following barebox commit:

| commit d11584d
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date:   Wed Apr 19 14:34:30 2017 +0200
|
|     state: Fix error return value
|
|     When the backend phandle cannot be resolved we jump to the error
|     return path without initializing ret. Fix this.
|
|     Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
1 parent e51096e commit 2ed85da806b09c2da95c31df720c99460c3893d5
@Ulrich Ölmann Ulrich Ölmann authored on 18 Dec 2018
Roland Hieber committed on 7 Jan 2019
Showing 1 changed file
View
src/barebox-state/state.c