summaryrefslogtreecommitdiff
path: root/e2fsprogs/old_e2fsprogs/blkid
diff options
context:
space:
mode:
authorManinder Singh2015-06-01 10:38:07 +0000
committerDenys Vlasenko2015-06-07 18:19:43 +0200
commit0fabedf085591b50994e4f8c133bfa87f1777ee4 (patch)
tree8308679426e463e68eb9f61cf5883c03c437c79d /e2fsprogs/old_e2fsprogs/blkid
parentd90899206dd96b4c18064c18afc3b856382e64d4 (diff)
downloadbusybox-0fabedf085591b50994e4f8c133bfa87f1777ee4.zip
busybox-0fabedf085591b50994e4f8c133bfa87f1777ee4.tar.gz
fix if(p)/free(p) construct
No need of explicit NULL check before free. Signed-off-by: Maninder Singh <maninder1.s@samsung.com> Signed-off-by: Akhilesh Kumar <akhilesh.k@samsung.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'e2fsprogs/old_e2fsprogs/blkid')
-rw-r--r--e2fsprogs/old_e2fsprogs/blkid/dev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/e2fsprogs/old_e2fsprogs/blkid/dev.c b/e2fsprogs/old_e2fsprogs/blkid/dev.c
index 84b7b0a..c2bbb06 100644
--- a/e2fsprogs/old_e2fsprogs/blkid/dev.c
+++ b/e2fsprogs/old_e2fsprogs/blkid/dev.c
@@ -44,8 +44,7 @@ void blkid_free_dev(blkid_dev dev)
bit_tags);
blkid_free_tag(tag);
}
- if (dev->bid_name)
- free(dev->bid_name);
+ free(dev->bid_name);
free(dev);
}