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

Signed-off-by: Sandeep Dhavale <[email protected]>
---
 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

Reply via email to