From: Theodore Ts'o Date: Sun, 14 Aug 2022 03:46:06 +0000 (-0400) Subject: e2image: checking the retval for the last update_refcount() is unnecessary X-Git-Tag: v1.46.6-rc1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc79c2ad59bde8918b0cc1d53f65119fcfdbb7b4;p=thirdparty%2Fe2fsprogs.git e2image: checking the retval for the last update_refcount() is unnecessary Addresses-Coverity-Bug: 709478 Signed-off-by: Theodore Ts'o --- diff --git a/misc/e2image.c b/misc/e2image.c index f9357aa0c..8b4c0677a 100644 --- a/misc/e2image.c +++ b/misc/e2image.c @@ -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);