diff mbox series

[3/5] gvariant-util: remove unneeded initializer

Message ID 20240305132807.85724-3-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [1/5] cert: remove usused elem_data variable | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success

Commit Message

James Prestwood March 5, 2024, 1:28 p.m. UTC
'i' is initialized inside the for loop, so remove this extra
initialization prior.
---
 ell/gvariant-util.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/ell/gvariant-util.c b/ell/gvariant-util.c
index 6a695d4..6482e24 100644
--- a/ell/gvariant-util.c
+++ b/ell/gvariant-util.c
@@ -843,7 +843,6 @@  static void container_append_struct_offsets(struct container *container,
 
 	offset_size = offset_length(builder->body_pos,
 						container->offset_index);
-	i = container->offset_index - 1;
 
 	start = grow_body(builder, offset_size * container->offset_index, 1);