diff options
author | Ulrich Ölmann <u.oelmann@pengutronix.de> | 2019-09-30 08:41:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-14 12:52:11 +0200 |
commit | 5ff1859d9b0eb7db67ed81ae22bdd86002d350ab (patch) | |
tree | 026592a01493ad2dc1824a61cb1801b220c33cbc /common | |
parent | e4667f1cd33efe8fd3346702d260c031240434b8 (diff) | |
download | barebox-5ff1859d9b0eb7db67ed81ae22bdd86002d350ab.tar.gz barebox-5ff1859d9b0eb7db67ed81ae22bdd86002d350ab.tar.xz |
common: state: fix backward compatibility
This reverts [1] as it annihilated its counterpart of commit [2].
[1] 5033b4f58f71 ("common: state: harmonize code with dt-utils")
[2] 480cde1b2283 ("state: keep backward compatibility")
Fixes: 5033b4f58f71 ("common: state: harmonize code with dt-utils")
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r-- | common/state/backend_bucket_direct.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/common/state/backend_bucket_direct.c b/common/state/backend_bucket_direct.c index 0dbd334db8..4522f0170f 100644 --- a/common/state/backend_bucket_direct.c +++ b/common/state/backend_bucket_direct.c @@ -115,9 +115,6 @@ static int state_backend_bucket_direct_write(struct state_backend_storage_bucket int ret; struct state_backend_storage_bucket_direct_meta meta; - if (len > direct->max_size - sizeof(meta)) - return -E2BIG; - if (lseek(direct->fd, direct->offset, SEEK_SET) != direct->offset) { dev_err(direct->dev, "Failed to seek file, %d\n", -errno); return -errno; |