upload-pack: remove unused variable "backup"

After the last patch, "result" and "backup" are the same. "result" used to move, but the movement is now contained in send_shallow(). Delete this redundant variable. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Jun 12, 2016 at 17:53 UTC ef635b9056e23c06b4b5bcb4de294c1f6d9dda24
1 file changed +4 -5
upload-pack.c
+4 -5
@@ -554,7 +554,7 @@ static void send_shallow(struct commit_list *result)
554
555 static void deepen(int depth, const struct object_array *shallows)
556 {
557 - struct commit_list *result = NULL, *backup = NULL;
557 + struct commit_list *result = NULL;
558 int i;
559 if (depth == INFINITE_DEPTH && !is_repository_shallow())
560 for (i = 0; i < shallows->nr; i++) {
@@ -562,11 +562,10 @@ static void deepen(int depth, const struct object_array *shallows)
562 object->flags |= NOT_SHALLOW;
563 }
564 else
565 - backup = result =
566 - get_shallow_commits(&want_obj, depth,
567 - SHALLOW, NOT_SHALLOW);
565 + result = get_shallow_commits(&want_obj, depth,
566 + SHALLOW, NOT_SHALLOW);
567 send_shallow(result);
569 - free_commit_list(backup);
568 + free_commit_list(result);
569 for (i = 0; i < shallows->nr; i++) {
570 struct object *object = shallows->objects[i].item;
571 if (object->flags & NOT_SHALLOW) {