Whamcloud - gitweb
e2image: checking the retval for the last update_refcount() is unnecessary
authorTheodore Ts'o <tytso@mit.edu>
Sun, 14 Aug 2022 03:46:06 +0000 (23:46 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 14 Aug 2022 03:46:06 +0000 (23:46 -0400)
Addresses-Coverity-Bug: 709478
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/e2image.c

index f9357aa..8b4c067 100644 (file)
@@ -1263,7 +1263,7 @@ static void output_qcow2_meta_data_blocks(ext2_filsys fs, int fd)
                        offset += img->cluster_size;
                }
        }
-       update_refcount(fd, img, offset, offset);
+       (void) update_refcount(fd, img, offset, offset);
        flush_l2_cache(img);
        sync_refcount(fd, img);