summaryrefslogtreecommitdiff
path: root/lib/ext2fs/unix_io.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2002-02-20 01:06:25 -0500
committerTheodore Ts'o <tytso@mit.edu>2002-02-20 01:06:25 -0500
commitf12e285ffd9ff0b37c4f91d5ab2b021ed1eb43be (patch)
tree609e6c0c8b5fb5cf552586053ada48fe5eb653c8 /lib/ext2fs/unix_io.c
parent7d4343d0d05ce69e0a72da5ac34eea415d4c789f (diff)
downloade2fsprogs-f12e285ffd9ff0b37c4f91d5ab2b021ed1eb43be.tar.gz
Add new inode I/O abstraction interface which exports an inode as
an I/O object. Export ext2_file_flush as a public interface. Also minor cleanups to tighten code in other I/O abstractions, and to mark a void * pointer as const in the ext2_file_write interface.
Diffstat (limited to 'lib/ext2fs/unix_io.c')
-rw-r--r--lib/ext2fs/unix_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c
index 7fa4b1a2..0f993e49 100644
--- a/lib/ext2fs/unix_io.c
+++ b/lib/ext2fs/unix_io.c
@@ -385,8 +385,8 @@ static errcode_t unix_close(io_channel channel)
if (close(data->dev) < 0)
retval = errno;
free_cache(channel, data);
- if (channel->private_data)
- ext2fs_free_mem((void **) &channel->private_data);
+
+ ext2fs_free_mem((void **) &channel->private_data);
if (channel->name)
ext2fs_free_mem((void **) &channel->name);
ext2fs_free_mem((void **) &channel);