diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2021-11-09 03:33:40 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-11-09 19:02:50 +0100 |
commit | a43e5e3a0227435e580a9e58f57c5face82368ee (patch) | |
tree | 86609a62c59dd39ddce076467b6d9d962d2e8693 /fs/binfmt_elf.c | |
parent | binfmt_elf: reintroduce using MAP_FIXED_NOREPLACE (diff) | |
download | linux-a43e5e3a0227435e580a9e58f57c5face82368ee.tar.xz linux-a43e5e3a0227435e580a9e58f57c5face82368ee.zip |
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: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_elf.c')
-rw-r--r-- | fs/binfmt_elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index 7537a19f0484..824e26a35b77 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 |