lib/test_vmalloc.c: use unsigned long constant
authorMartin Kaiser <martin@kaiser.cx>
Mon, 26 Feb 2024 19:11:59 +0000 (20:11 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 5 Mar 2024 01:01:22 +0000 (17:01 -0800)
commit4c4a52544ae03d84ffd3b5e9593833ffe05485a1
tree87c9ee7f62ee9e197dc38a9faf10e7f69cd4e5e1
parente2c5bfebabaedbec8ca858b66f95f3a993428b0c
lib/test_vmalloc.c: use unsigned long constant

Use an unsigned long constant instead of an int constant and a cast.  This
fixes the checkpatch warning

WARNING: Unnecessary typecast of c90 int constant - '(unsigned long) 1' could be '1UL'
+     align = ((unsigned long) 1) << i;

Link: https://lkml.kernel.org/r/20240226191159.39509-4-martin@kaiser.cx
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/test_vmalloc.c