From e7c43b66d74ee9902a6732122788a7a16bcfbf18 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 1 Mar 2006 16:39:45 +0000 Subject: Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x) from before "if(x) free(x)". --- e2fsprogs/ext2fs/icount.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'e2fsprogs/ext2fs/icount.c') diff --git a/e2fsprogs/ext2fs/icount.c b/e2fsprogs/ext2fs/icount.c index 01677775f..7ae2a5c0f 100644 --- a/e2fsprogs/ext2fs/icount.c +++ b/e2fsprogs/ext2fs/icount.c @@ -59,12 +59,9 @@ void ext2fs_free_icount(ext2_icount_t icount) return; icount->magic = 0; - if (icount->list) - ext2fs_free_mem(&icount->list); - if (icount->single) - ext2fs_free_inode_bitmap(icount->single); - if (icount->multiple) - ext2fs_free_inode_bitmap(icount->multiple); + ext2fs_free_mem(&icount->list); + ext2fs_free_inode_bitmap(icount->single); + ext2fs_free_inode_bitmap(icount->multiple); ext2fs_free_mem(&icount); } -- cgit v1.2.3