summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_flat.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-06-13 09:08:48 +0200
committerGreg Ungerer <gerg@kernel.org>2019-06-24 01:16:46 +0200
commit2f3196d49b1e10f1d4bc64cce00dc95fde2b0ce1 (patch)
treef802c4ac374faf1154f1b672df23095d36000bbc /fs/binfmt_flat.c
parentbinfmt_flat: remove flat_reloc_valid (diff)
downloadlinux-2f3196d49b1e10f1d4bc64cce00dc95fde2b0ce1.tar.xz
linux-2f3196d49b1e10f1d4bc64cce00dc95fde2b0ce1.zip
binfmt_flat: remove flat_set_persistent
This helper is a no-op on all architectures, remove it. Signed-off-by: Christoph Hellwig <hch@lst.de> Tested-by: Vladimir Murzin <vladimir.murzin@arm.com> Reviewed-by: Vladimir Murzin <vladimir.murzin@arm.com> Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
Diffstat (limited to 'fs/binfmt_flat.c')
-rw-r--r--fs/binfmt_flat.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c
index afddea583999..a4c0b245ab1f 100644
--- a/fs/binfmt_flat.c
+++ b/fs/binfmt_flat.c
@@ -787,8 +787,6 @@ static int load_flat_file(struct linux_binprm *bprm,
if (get_user(relval, reloc + i))
return -EFAULT;
relval = ntohl(relval);
- if (flat_set_persistent(relval, &persistent))
- continue;
addr = flat_get_relocate_addr(relval);
rp = (u32 __user *)calc_reloc(addr, libinfo, id, 1);
if (rp == (u32 __user *)RELOC_FAILED) {