From f12e285ffd9ff0b37c4f91d5ab2b021ed1eb43be Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 20 Feb 2002 01:06:25 -0500 Subject: 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. --- lib/ext2fs/unix_io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ext2fs/unix_io.c') 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); -- cgit v1.2.3