summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel
diff options
context:
space:
mode:
authorVladimir Murzin <vladimir.murzin@arm.com>2017-09-04 09:17:32 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2017-09-28 11:13:03 +0100
commit6022f80da0d9d42e02e78f3fb42930ee86f3e7af (patch)
treeb99078fd38a3364832fc78b94dadf929bb4132b4 /arch/arm/kernel
parent94058906acfbe3474e26d665924260e44a30e1bc (diff)
downloadtalos-op-linux-6022f80da0d9d42e02e78f3fb42930ee86f3e7af.tar.gz
talos-op-linux-6022f80da0d9d42e02e78f3fb42930ee86f3e7af.zip
ARM: 8695/1: entry: Remove dead code in sys_mmap2
We support page size of 4K only, remove dead code. Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r--arch/arm/kernel/entry-common.S9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S
index ca3614dc6938..cc70bc5650a5 100644
--- a/arch/arm/kernel/entry-common.S
+++ b/arch/arm/kernel/entry-common.S
@@ -394,17 +394,8 @@ ENDPROC(sys_fstatfs64_wrapper)
* offset, we return EINVAL.
*/
sys_mmap2:
-#if PAGE_SHIFT > 12
- tst r5, #PGOFF_MASK
- moveq r5, r5, lsr #PAGE_SHIFT - 12
- streq r5, [sp, #4]
- beq sys_mmap_pgoff
- mov r0, #-EINVAL
- ret lr
-#else
str r5, [sp, #4]
b sys_mmap_pgoff
-#endif
ENDPROC(sys_mmap2)
#ifdef CONFIG_OABI_COMPAT
OpenPOWER on IntegriCloud