From 72ab488af39cd487a5cefc862e3e2d3466facff3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 24 Jun 2024 15:03:42 -0400 Subject: Clean up redundant and/or inconsistent conditionals --- src/stack.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/stack.h') diff --git a/src/stack.h b/src/stack.h index d118430a..388dd054 100644 --- a/src/stack.h +++ b/src/stack.h @@ -78,9 +78,7 @@ serd_stack_push_aligned(SerdStack* stack, size_t n_bytes, size_t align) // Push padding if necessary const size_t pad = align - stack->size % align; - if (pad > 0) { - serd_stack_push(stack, pad); - } + serd_stack_push(stack, pad); // Set top of stack to pad count so we can properly pop later assert(pad < UINT8_MAX); -- cgit v1.2.1