From 496c285c5d2dba7cedb03de413c75209baee2f3c Mon Sep 17 00:00:00 2001 From: szaka Date: Mon, 9 Jul 2007 22:18:07 +0000 Subject: [PATCH] ntfs_attr_free()/ntfs_inode_free(): don't scare users with bogus errors --- libntfs-3g/volume.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libntfs-3g/volume.c b/libntfs-3g/volume.c index a3ee7ec8..b2f30c4b 100644 --- a/libntfs-3g/volume.c +++ b/libntfs-3g/volume.c @@ -85,8 +85,7 @@ static void ntfs_attr_free(ntfs_attr **na) if (na && *na) { ntfs_attr_close(*na); *na = NULL; - } else - ntfs_log_error("Tried to free NULL attribute pointer (%p)\n", na); + } } static int ntfs_inode_free(ntfs_inode **ni) @@ -96,8 +95,7 @@ static int ntfs_inode_free(ntfs_inode **ni) if (ni && *ni) { ret = ntfs_inode_close(*ni); *ni = NULL; - } else - ntfs_log_error("Tried to free NULL inode pointer (%p)\n", ni); + } return ret; }