summaryrefslogtreecommitdiffstats
path: root/common/state/state.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2019-09-11 21:27:37 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-10-14 12:52:10 +0200
commita672ca37ab530c3d8c88144ebcd9cb51b8cd9739 (patch)
treed913d0411dadb35ab382a5b138105cdab5b87836 /common/state/state.c
parent215ca50f876d7fc189bfb69ba2a2f5fef38305b1 (diff)
downloadbarebox-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/state.c')
-rw-r--r--common/state/state.c7
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;