From 6306826077a8be63262c00ab9e5d58bf28a908ea Mon Sep 17 00:00:00 2001 From: jpandre Date: Thu, 21 Jan 2010 08:13:27 +0000 Subject: [PATCH] Removed an unneeded variable (Fabian Keil) --- libntfs-3g/attrib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libntfs-3g/attrib.c b/libntfs-3g/attrib.c index 1e04ce9e..02b5d6aa 100644 --- a/libntfs-3g/attrib.c +++ b/libntfs-3g/attrib.c @@ -3447,7 +3447,6 @@ int ntfs_attr_record_rm(ntfs_attr_search_ctx *ctx) { ntfs_inode *base_ni, *ni; ATTR_TYPES type; - int err; if (!ctx || !ctx->ntfs_ino || !ctx->mrec || !ctx->attr) { errno = EINVAL; @@ -3472,7 +3471,7 @@ int ntfs_attr_record_rm(ntfs_attr_search_ctx *ctx) if (ntfs_attrlist_entry_add(ni, ctx->attr)) ntfs_log_trace("Rollback failed. Leaving inconstant " "metadata.\n"); - err = EIO; + errno = EIO; return -1; } ntfs_inode_mark_dirty(ni);