diff options
author | Ulrich Ölmann <u.oelmann@pengutronix.de> | 2019-02-03 22:48:01 +0100 |
---|---|---|
committer | Roland Hieber <rhi@pengutronix.de> | 2019-02-07 12:34:15 +0100 |
commit | 9106360a3c851f45bce298bfd66bbb6ca32fd9be (patch) | |
tree | 1e3e9fd0abf64fdff8555e3dabbd6aa8741f8d80 | |
parent | 15786485ab8b834a325b50e1ef6883aba0c0ceaa (diff) | |
download | dt-utils-9106360a3c851f45bce298bfd66bbb6ca32fd9be.tar.gz dt-utils-9106360a3c851f45bce298bfd66bbb6ca32fd9be.tar.xz |
barebox-state: remove declaration of __state_uint8_get()
By cleaning up the code the compiler does not emit the following warning
anymore:
src/barebox-state.c:44:14: warning: ‘__state_uint8_get’ declared ‘static’ but never defined [-Wunused-function]
static char *__state_uint8_get(struct state_variable *var);
^~~~~~~~~~~~~~~~~
The function is not needed as its job is done by __state_uint32_get().
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
-rw-r--r-- | src/barebox-state.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/barebox-state.c b/src/barebox-state.c index 4e087b9..fc9a7bb 100644 --- a/src/barebox-state.c +++ b/src/barebox-state.c @@ -41,7 +41,6 @@ struct state_variable; static int __state_uint8_set(struct state_variable *var, const char *val); -static char *__state_uint8_get(struct state_variable *var); static int __state_uint32_set(struct state_variable *var, const char *val); static char *__state_uint32_get(struct state_variable *var); static int __state_enum32_set(struct state_variable *sv, const char *val); |