From 0a7c613da025f1dcd5dae856e1a9b49eb3e037b1 Mon Sep 17 00:00:00 2001 From: Demi Marie Obenour Date: Thu, 23 Apr 2026 00:35:42 -0400 Subject: [PATCH] vm-allocator: Remove a redundant check for zero alignment.is_power_of_two() already implies alignment != 0. Signed-off-by: Demi Marie Obenour --- vm-allocator/src/address.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vm-allocator/src/address.rs b/vm-allocator/src/address.rs index 2eb99670e..b36935f65 100644 --- a/vm-allocator/src/address.rs +++ b/vm-allocator/src/address.rs @@ -174,7 +174,7 @@ impl AddressAllocator { } let alignment = align_size.unwrap_or(4); - if !alignment.is_power_of_two() || alignment == 0 { + if !alignment.is_power_of_two() { return None; }