From: Alexey Dobriyan Date: Tue, 9 Nov 2021 02:33:40 +0000 (-0800) Subject: ELF: simplify STACK_ALLOC macro X-Git-Tag: v6.1-rc5~2692^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a43e5e3a0227435e580a9e58f57c5face82368ee;p=platform%2Fkernel%2Flinux-starfive.git ELF: simplify STACK_ALLOC macro "A -= B; A" is equivalent to "A -= B". Link: https://lkml.kernel.org/r/YVmcP256fRMqCwgK@localhost.localdomain Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 7537a19..824e26a 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -156,7 +156,7 @@ static int padzero(unsigned long elf_bss) #define STACK_ADD(sp, items) ((elf_addr_t __user *)(sp) - (items)) #define STACK_ROUND(sp, items) \ (((unsigned long) (sp - items)) &~ 15UL) -#define STACK_ALLOC(sp, len) ({ sp -= len ; sp; }) +#define STACK_ALLOC(sp, len) (sp -= len) #endif #ifndef ELF_BASE_PLATFORM