[PATCH v1 2/7] erofs-utils: lib: Remove redundant line to get padding

Sandeep Dhavale dhavale at google.com
Thu Sep 14 08:10:59 AEST 2023


padding is only used in the next if() block. Remove the redundant call.

Signed-off-by: Sandeep Dhavale <dhavale at google.com>
---
 lib/blobchunk.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/blobchunk.c b/lib/blobchunk.c
index 86b29c1..fcc71b8 100644
--- a/lib/blobchunk.c
+++ b/lib/blobchunk.c
@@ -91,7 +91,6 @@ static struct erofs_blobchunk *erofs_blob_getchunk(struct erofs_sb_info *sbi,
 
 	erofs_dbg("Writing chunk (%u bytes) to %u", chunksize, chunk->blkaddr);
 	ret = fwrite(buf, chunksize, 1, blobfile);
-	padding = erofs_blkoff(sbi, chunksize);
 	if (ret == 1) {
 		padding = erofs_blkoff(sbi, chunksize);
 		if (padding) {
-- 
2.42.0.283.g2d96d420d3-goog



More information about the Linux-erofs mailing list