diff options
author | Jim Meyering <meyering@redhat.com> | 2008-04-30 18:35:44 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-04-30 18:58:40 +0200 |
commit | 882cdc181fad05adbe00a4dace31b1e213a0963c (patch) | |
tree | 97ad85486c0eaa3d82b4fb54b893a618023a30b1 /m4 | |
parent | 85b4a28b4988635e5c525ccb6df1033abfe16e95 (diff) | |
download | parted-882cdc181fad05adbe00a4dace31b1e213a0963c.tar.gz |
Remove useless "if" tests before free.
* libparted/arch/linux.c (_dm_add_partition): Remove useless test.
* libparted/labels/fdasd.c (fdasd_cleanup): Likewise.
* m4/o-direct.m4 (parted_FIND_USABLE_TEST_DIR): Likewise.
* parted/table.c (table_destroy): Likewise.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/o-direct.m4 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/m4/o-direct.m4 b/m4/o-direct.m4 index c0cfdc8..899aabb 100644 --- a/m4/o-direct.m4 +++ b/m4/o-direct.m4 @@ -3,7 +3,7 @@ # The problem is that on systems supporting O_DIRECT, open with O_DIRECT # fails for some file system types (e.g., tmpfs on linux-2.6.21). -# Copyright (C) 2007 Free Software Foundation, Inc. +# Copyright (C) 2007, 2008 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -205,8 +205,7 @@ main () *endp = '\0'; rmdir (tmp); /* ignore failure */ } - if (template) - free (template); + free (template); } if (found) |