From 9ce8ff9bb1eca0a354583474a2168415ca9ba7c4 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Tue, 6 Jun 2023 01:00:03 +0800 Subject: [PATCH] util: Remove redundant type cast in function align64 Fixes: 0a06cf75231 ("util: migrate alignment functions and macros to use ALIGN_POT") Reviewed-by: Rohan Garg Signed-off-by: Yonggang Luo Part-of: --- src/util/u_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/u_math.h b/src/util/u_math.h index 374d32bd338..149d223a5b6 100644 --- a/src/util/u_math.h +++ b/src/util/u_math.h @@ -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); } /**