common: globvar: let nvvar_remove() report non-existing variable
The former implementation did not allow to detect whether the call to
nvvar_remove() succeeded or failed and always returned 0.

This changes the implementation to return 0 only if a variable with the
given name was found and return ENOENT otherwise.

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 2145fdf commit 609d3edc3ad963202c34c841b2e3b678eae6f0da
@Enrico Jorns Enrico Jorns authored on 1 Nov 2017
Sascha Hauer committed on 3 Nov 2017
Showing 1 changed file
View
common/globalvar.c