diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2019-09-11 21:27:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-14 12:52:10 +0200 |
commit | a672ca37ab530c3d8c88144ebcd9cb51b8cd9739 (patch) | |
tree | d913d0411dadb35ab382a5b138105cdab5b87836 /common/state | |
parent | 215ca50f876d7fc189bfb69ba2a2f5fef38305b1 (diff) | |
download | barebox-a672ca37ab530c3d8c88144ebcd9cb51b8cd9739.tar.gz barebox-a672ca37ab530c3d8c88144ebcd9cb51b8cd9739.tar.xz |
state: drop unused code and declarations for non-existing functions
state_get_name() is not used and so can be removed.
state_backend_dtb_file() and state_backend_raw_file() were dropped in
c999b507da98 ("state: Refactor state framework").
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/state')
-rw-r--r-- | common/state/state.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/common/state/state.c b/common/state/state.c index 3f5d43ecbf..b168387eef 100644 --- a/common/state/state.c +++ b/common/state/state.c @@ -714,13 +714,6 @@ struct state *state_by_node(const struct device_node *node) return NULL; } -int state_get_name(const struct state *state, char const **name) -{ - *name = xstrdup(state->name); - - return 0; -} - int state_read_mac(struct state *state, const char *name, u8 *buf) { struct state_variable *svar; |