Commit 9296b03b686828afd019e202e6d6b31d392d66b2

Stefan Sperling 2022-01-26T10:33:52

remove unnecessary local variable from got_privsep_get_imsg_obj()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/lib/privsep.c b/lib/privsep.c
index 252ff6e..d9b70a8 100644
--- a/lib/privsep.c
+++ b/lib/privsep.c
@@ -1186,7 +1186,6 @@ const struct got_error *
 got_privsep_get_imsg_obj(struct got_object **obj, struct imsg *imsg,
     struct imsgbuf *ibuf)
 {
-	const struct got_error *err = NULL;
 	struct got_imsg_object *iobj;
 	size_t datalen = imsg->hdr.len - IMSG_HEADER_SIZE;
 
@@ -1209,7 +1208,7 @@ got_privsep_get_imsg_obj(struct got_object **obj, struct imsg *imsg,
 		(*obj)->pack_idx = iobj->pack_idx;
 	}
 	STAILQ_INIT(&(*obj)->deltas.entries);
-	return err;
+	return NULL;
 }
 
 const struct got_error *