state: backend_storage: Set needs_refresh back to 0 after refreshing
This ports the following barebox commit:
| commit 275f354
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date: Wed Apr 19 10:18:42 2017 +0200
|
| state: backend_storage: Set needs_refresh back to 0 after refreshing
|
| Set needs_refresh back to 0 after refreshing so that we do not refresh
| it again without need. This would only happen when we read the state
| from the storage multiple times, which normally is not the case.
| However, it's more consistent like this.
|
| Reported-by: Sam Ravnborg <sam@ravnborg.org>
| 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>