From ab75028fd503ae87a5330ebe501afb071dddd9db Mon Sep 17 00:00:00 2001 From: szaka Date: Mon, 30 Jun 2008 02:24:12 +0000 Subject: [PATCH] cleanup ntfs_volume_write_flags(): remove redundant error logging --- libntfs-3g/volume.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libntfs-3g/volume.c b/libntfs-3g/volume.c index c2cb4364..c117e518 100644 --- a/libntfs-3g/volume.c +++ b/libntfs-3g/volume.c @@ -1431,10 +1431,9 @@ int ntfs_volume_write_flags(ntfs_volume *vol, const u16 flags) vol->flags = c->flags = flags & VOLUME_FLAGS_MASK; /* Write them to disk. */ ntfs_inode_mark_dirty(vol->vol_ni); - if (ntfs_inode_sync(vol->vol_ni)) { - ntfs_log_perror("Error writing $Volume"); + if (ntfs_inode_sync(vol->vol_ni)) goto err_out; - } + ret = 0; /* success */ err_out: ntfs_attr_put_search_ctx(ctx);