diff options
Diffstat (limited to 'util-linux/freeramdisk.c')
-rw-r--r-- | util-linux/freeramdisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c index e5061dc..cfea35b 100644 --- a/util-linux/freeramdisk.c +++ b/util-linux/freeramdisk.c @@ -47,9 +47,9 @@ freeramdisk_main(int argc, char **argv) fd = bb_xopen(argv[1], O_RDWR); result = ioctl(fd, BLKFLSBUF); -#ifdef CONFIG_FEATURE_CLEAN_UP - close(fd); -#endif + + if (ENABLE_FEATURE_CLEAN_UP) close(fd); + if (result < 0) { bb_perror_msg_and_die("failed ioctl on %s", argv[1]); } |