# uefi: erroneous alignment check in pool_allocator · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8d76c02f9a7ca664ee669e1f9c1a70b841eb2774)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8d76c02f9a7ca664ee669e1f9c1a70b841eb2774

Requested commit: 8d76c02f9a7ca664ee669e1f9c1a70b841eb2774

Commit: 8d76c02f9a7ca664ee669e1f9c1a70b841eb2774

Tree: 5af8c3ec7f09b30bf3334835fdc6055230092942

Author: Nameless

Committer: Andrew Kelley

## Message

```
uefi: erroneous alignment check in pool_allocator

Fixes #21446

Both UefiPoolAllocator and UefiRawPoolAllocator were
passing the value of `log2_ptr_align` directly to
`mem.alignAllocLen` which expects a alignment value.

Both of these calls to `mem.alignAllocLen` are pointless
and the result of the alignment both always true, and
was thrown away anyway.

I have removed these calls entirely.

```

## Parents

- [37cd21eb5f23d2bb26e36ca3de76f0a71e16230c](https://git.cafe/gitcafe/zig/commit/37cd21eb5f23d2bb26e36ca3de76f0a71e16230c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8d76c02f9a7ca664ee669e1f9c1a70b841eb2774?format=markdown)
