util: Remove redundant type cast in function align64
authorYonggang Luo <luoyonggang@gmail.com>
Mon, 5 Jun 2023 17:00:03 +0000 (01:00 +0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Jun 2023 06:41:20 +0000 (06:41 +0000)
Fixes: 0a06cf75231 ("util: migrate alignment functions and macros to use ALIGN_POT")

Reviewed-by: Rohan Garg <rohan.garg@intel.com>
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23421>

src/util/u_math.h

index 374d32b..149d223 100644 (file)
@@ -702,7 +702,7 @@ static inline uint64_t
 align64(uint64_t value, uint64_t alignment)
 {
    assert(IS_POT(alignment));
-   return ALIGN_POT(value, (uint64_t)alignment);
+   return ALIGN_POT(value, alignment);
 }
 
 /**