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>
1 parent f7f947e commit d11584df3d8c311f8d12a16badc8fbe18e592f87
@Sascha Hauer Sascha Hauer authored on 19 Apr 2017
Showing 1 changed file
View
common/state/state.c