Code

Remove a redundant errno test in a usage of remove_path
authorPeter Collingbourne <peter@pcc.me.uk>
Fri, 26 Mar 2010 15:25:35 +0000 (15:25 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 28 Mar 2010 16:53:05 +0000 (09:53 -0700)
The errno test is redundant because the same test is carried
out in remove_path itself.

Signed-off-by: Peter Collingbourne <peter@pcc.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
merge-recursive.c

index 195ebf974435b0b08cd2be0f54c137218034008b..87232b899d8ab12c2f3c6704a9a1ca12d4a9f286 100644 (file)
@@ -409,7 +409,7 @@ static int remove_file(struct merge_options *o, int clean,
                        return -1;
        }
        if (update_working_directory) {
-               if (remove_path(path) && errno != ENOENT)
+               if (remove_path(path))
                        return -1;
        }
        return 0;