Skip to content

Commit 104399f

Browse files
committed
lib/misc: Remove dead overflow check in ALIGN_UP macro
1 parent b2cc8b7 commit 104399f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/lib/misc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ uint64_t strtoui(const char *s, const char **end, int base);
100100
#define ALIGN_UP(x, a, onerror) ({ \
101101
__auto_type ALIGN_UP_value = (x); \
102102
__auto_type ALIGN_UP_align = (a); \
103-
ALIGN_UP_value = CHECKED_MUL(DIV_ROUNDUP(ALIGN_UP_value, ALIGN_UP_align, onerror), ALIGN_UP_align, onerror); \
103+
ALIGN_UP_value = DIV_ROUNDUP(ALIGN_UP_value, ALIGN_UP_align, onerror) * ALIGN_UP_align; \
104104
ALIGN_UP_value; \
105105
})
106106

0 commit comments

Comments
 (0)