s390/vdso: remove superfluous check
authorHeiko Carstens <hca@linux.ibm.com>
Sun, 24 Jan 2021 19:10:27 +0000 (20:10 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 9 Feb 2021 14:57:05 +0000 (15:57 +0100)
vdso_pages (aka vdso64_pages) is never 0, therefore remove the check.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/vdso.c

index f06791c..da18ba8 100644 (file)
@@ -118,13 +118,6 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int uses_interp)
                return 0;
 
        vdso_pages = vdso64_pages;
-       /*
-        * vDSO has a problem and was disabled, just don't "enable" it for
-        * the process
-        */
-       if (vdso_pages == 0)
-               return 0;
-
        /*
         * pick a base address for the vDSO in process space. We try to put
         * it at vdso_base which is the "natural" base for it, but we might