[PATCH] erofs-utils: lib: remove shadowed ret variable in compress.c
Hardik
hardikkumarpro0005 at gmail.com
Mon Mar 2 23:32:01 AEDT 2026
Signed-off-by: Hardik <hardikkumarpro0005 at gmail.com>
---
lib/compress.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/compress.c b/lib/compress.c
index 4a0d890..7196fc2 100644
--- a/lib/compress.c
+++ b/lib/compress.c
@@ -1277,7 +1277,6 @@ int z_erofs_compress_segment(struct z_erofs_compress_sctx *ctx,
while (ctx->remaining) {
const u64 rx = min_t(u64, ctx->remaining,
Z_EROFS_COMPR_QUEUE_SZ - ctx->tail);
- int ret;
ret = (offset == -1 ?
erofs_io_read(vf, ctx->queue + ctx->tail, rx) :
--
2.53.0.windows.1
More information about the Linux-erofs
mailing list