of_get_devicepath: simplify code flow
This reduces indention level and makes the code more easy to follow.

There is no semantic change (but now it's obvious there is a bug which
is fixed in the next commit).

Fixes: d83976b8163d ("libdt: add block devicepath extraction")
1 parent 7008a1c commit ffbd46f76fef79f53bc298aacd56d9eb1de92c3c
@Uwe Kleine-König Uwe Kleine-König authored on 9 Feb 2017
Showing 1 changed file
View
src/libdt.c