diff options
author | Brian C. Lane <bcl@redhat.com> | 2018-10-17 11:28:18 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2019-08-09 11:54:54 -0700 |
commit | 6a39c906d2d2144f0bf59ca488a5d7cc6ffc253e (patch) | |
tree | 10b48cb7bc39c88f9cbddc450c3875c539dad931 /libparted | |
parent | 9801693c0f8364f52bb0cbcbf583ad776ffa38fd (diff) | |
download | parted-6a39c906d2d2144f0bf59ca488a5d7cc6ffc253e.tar.gz |
Remove unnecessary if before free checks
Caught by make syntax-check
Diffstat (limited to 'libparted')
-rw-r--r-- | libparted/labels/fdasd.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libparted/labels/fdasd.c b/libparted/labels/fdasd.c index 713ed6b..cee4d46 100644 --- a/libparted/labels/fdasd.c +++ b/libparted/labels/fdasd.c @@ -111,14 +111,10 @@ fdasd_cleanup (fdasd_anchor_t *anchor) if (anchor == NULL) return; - if (anchor->f4 != NULL) - free(anchor->f4); - if (anchor->f5 != NULL) - free(anchor->f5); - if (anchor->f7 != NULL) - free(anchor->f7); - if (anchor->vlabel != NULL) - free(anchor->vlabel); + free(anchor->f4); + free(anchor->f5); + free(anchor->f7); + free(anchor->vlabel); part_info = anchor->first; for (i = 1; i <= USABLE_PARTITIONS && part_info != NULL; i++) { |