summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2021-10-28 13:25:33 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2021-10-28 13:25:33 +1100
commit478f0d69874bc74536b27d084c8b840f385d2a81 (patch)
tree6df71e3cfee1ed6dd4b305badc1a69cfbbf9fe57
parent2073ad38f91bc13514d541703750c2cd2be24504 (diff)
downloadlinux-478f0d69874bc74536b27d084c8b840f385d2a81.tar.gz
linux-478f0d69874bc74536b27d084c8b840f385d2a81.tar.xz
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 <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r--fs/binfmt_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index 3e7c35d217c7..5e48ff4f0d3a 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