diff options
author | Jim Meyering <meyering@redhat.com> | 2009-02-24 15:58:37 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2009-02-24 16:07:03 +0100 |
commit | 0e4ed1aab091de221bd54a188691943b1d1c803f (patch) | |
tree | 328dcb00eef1327797217b867a7cddd37a6d67c1 /libs/blkid/src/resolve.c | |
parent | 0d4b490f79de86caca250ba2fee936e37cf6ec31 (diff) | |
download | util-linux-old-0e4ed1aab091de221bd54a188691943b1d1c803f.tar.gz |
blkid: remove useless if-before-free tests
[kzak@redhat.com: - port the original e2fsprogs patch to util-linux-ng]
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libs/blkid/src/resolve.c')
-rw-r--r-- | libs/blkid/src/resolve.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libs/blkid/src/resolve.c b/libs/blkid/src/resolve.c index 86fa9fe8..b6ca827c 100644 --- a/libs/blkid/src/resolve.c +++ b/libs/blkid/src/resolve.c @@ -97,10 +97,8 @@ char *blkid_get_devname(blkid_cache cache, const char *token, ret = blkid_strdup(blkid_dev_devname(dev)); out: - if (t) - free(t); - if (v) - free(v); + free(t); + free(v); if (!cache) { blkid_put_cache(c); } |