try_merge_strategy(): remove redundant lock_file allocation
[gitweb.git] / builtin / merge.c
index dff043dac33ea88a8c5a05ea5ac3da71ca00c0d3..1ec39394af3a9db0b21338a8cb31d95ea3d48daa 100644 (file)
@@ -668,7 +668,6 @@ static int try_merge_strategy(const char *strategy, struct commit_list *common,
        if (!strcmp(strategy, "recursive") || !strcmp(strategy, "subtree")) {
                int clean, x;
                struct commit *result;
-               struct lock_file *lock = xcalloc(1, sizeof(struct lock_file));
                struct commit_list *reversed = NULL;
                struct merge_options o;
                struct commit_list *j;