pw_allocator: Remove unnecessary reinterpret_casts

Change-Id: Ieb0978733fada91189cadd39fdeb686a035545f2
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/12603
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Jamie Garside <jgarside@google.com>
Commit-Queue: Wyatt Hepler <hepler@google.com>
diff --git a/pw_allocator/freelist_heap.cc b/pw_allocator/freelist_heap.cc
index 9ff5044..7966bb8 100644
--- a/pw_allocator/freelist_heap.cc
+++ b/pw_allocator/freelist_heap.cc
@@ -52,7 +52,7 @@
 }
 
 void FreeListHeap::Free(void* ptr) {
-  std::byte* bytes = reinterpret_cast<std::byte*>(ptr);
+  std::byte* bytes = static_cast<std::byte*>(ptr);
 
   if (bytes < region_.data() || bytes >= region_.data() + region_.size()) {
     return;
@@ -102,7 +102,7 @@
     return Allocate(size);
   }
 
-  std::byte* bytes = reinterpret_cast<std::byte*>(ptr);
+  std::byte* bytes = static_cast<std::byte*>(ptr);
 
   // TODO(chenghanzh): Enhance with debug information for out-of-range and more.
   if (bytes < region_.data() || bytes >= region_.data() + region_.size()) {