summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-03-23 15:08:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-03-31 13:57:17 +0200
commit6893aa7a60a3a308884c85d63ca134a2a4abb8c5 (patch)
tree9e8a26f1e4388532c4d14c2e9ec5f9182df96d4a
parent8f8931994495e187aba298f76edefdd27b643b54 (diff)
downloaddt-utils-6893aa7a60a3a308884c85d63ca134a2a4abb8c5.tar.gz
state: backend: remove .get_packed_len
.get_packed_len isn't implemented by any backend, so remove the hook and its potential caller. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--src/barebox-state/backend.c3
-rw-r--r--src/barebox-state/state.h2
2 files changed, 0 insertions, 5 deletions
diff --git a/src/barebox-state/backend.c b/src/barebox-state/backend.c
index 5235bb0..6b06c84 100644
--- a/src/barebox-state/backend.c
+++ b/src/barebox-state/backend.c
@@ -74,9 +74,6 @@ int state_load(struct state *state)
int ret;
struct state_backend *backend = &state->backend;
- if (backend->format->get_packed_len)
- len_hint = backend->format->get_packed_len(backend->format,
- state);
ret = state_storage_read(&backend->storage, backend->format,
state->magic, &buf, &len, len_hint);
if (ret) {
diff --git a/src/barebox-state/state.h b/src/barebox-state/state.h
index bc6917d..0197cb8 100644
--- a/src/barebox-state/state.h
+++ b/src/barebox-state/state.h
@@ -53,8 +53,6 @@ struct state_backend_format {
uint8_t ** buf, ssize_t * len);
int (*unpack) (struct state_backend_format * format,
struct state * state, const uint8_t * buf, ssize_t len);
- ssize_t(*get_packed_len) (struct state_backend_format * format,
- struct state * state);
void (*free) (struct state_backend_format * format);
const char *name;
};