summaryrefslogtreecommitdiff
path: root/e2fsprogs/blkid/devno.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/blkid/devno.c')
-rw-r--r--e2fsprogs/blkid/devno.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/e2fsprogs/blkid/devno.c b/e2fsprogs/blkid/devno.c
index 7d083e7..2979280 100644
--- a/e2fsprogs/blkid/devno.c
+++ b/e2fsprogs/blkid/devno.c
@@ -218,8 +218,7 @@ int main(int argc, char** argv)
}
printf("Looking for device 0x%04Lx\n", devno);
devname = blkid_devno_to_devname(devno);
- if (devname)
- free(devname);
+ free(devname);
return 0;
}
#endif