diff options
author | Rob Landley | 2006-03-01 16:39:45 +0000 |
---|---|---|
committer | Rob Landley | 2006-03-01 16:39:45 +0000 |
commit | e7c43b66d74ee9902a6732122788a7a16bcfbf18 (patch) | |
tree | ebb8583e9e1265588592614c0b4878daded44125 /e2fsprogs/ext2fs/fileio.c | |
parent | 93f2286e6e59dab5eed14b5912a79254031c5a62 (diff) | |
download | busybox-e7c43b66d74ee9902a6732122788a7a16bcfbf18.zip busybox-e7c43b66d74ee9902a6732122788a7a16bcfbf18.tar.gz |
Cleanup patch from Denis Vlasenko. Mostly variants of removing the if(x)
from before "if(x) free(x)".
Diffstat (limited to 'e2fsprogs/ext2fs/fileio.c')
-rw-r--r-- | e2fsprogs/ext2fs/fileio.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/e2fsprogs/ext2fs/fileio.c b/e2fsprogs/ext2fs/fileio.c index 669e80c..da349fe 100644 --- a/e2fsprogs/ext2fs/fileio.c +++ b/e2fsprogs/ext2fs/fileio.c @@ -73,8 +73,7 @@ errcode_t ext2fs_file_open2(ext2_filsys fs, ext2_ino_t ino, return 0; fail: - if (file->buf) - ext2fs_free_mem(&file->buf); + ext2fs_free_mem(&file->buf); ext2fs_free_mem(&file); return retval; } @@ -197,8 +196,7 @@ errcode_t ext2fs_file_close(ext2_file_t file) retval = ext2fs_file_flush(file); - if (file->buf) - ext2fs_free_mem(&file->buf); + ext2fs_free_mem(&file->buf); ext2fs_free_mem(&file); return retval; |