cleanup ntfs_volume_write_flags(): remove redundant error logging

master
szaka 2008-06-30 02:24:12 +00:00
parent cea1c5c7e8
commit ab75028fd5
1 changed files with 2 additions and 3 deletions

View File

@ -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);