s390: remove unneeded sizeof(void *) comparisons
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 13 Aug 2015 11:26:49 +0000 (13:26 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 19 Aug 2015 08:03:44 +0000 (10:03 +0200)
Remove two more statements which always evaluate to 'false'.
These are more leftovers from the 31 bit era.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/fault.c
drivers/s390/block/dasd_eckd.c

index 4c8f5d7f9c23d74c960cd1172f266391ba8ec1a3..f985856a538b75e8c62cdfec3950357cff8fff0d 100644 (file)
@@ -646,7 +646,7 @@ static void pfault_interrupt(struct ext_code ext_code,
                return;
        inc_irq_stat(IRQEXT_PFL);
        /* Get the token (= pid of the affected task). */
-       pid = sizeof(void *) == 4 ? param32 : param64;
+       pid = param64;
        rcu_read_lock();
        tsk = find_task_by_pid_ns(pid, &init_pid_ns);
        if (tsk)
index 72cdaae8ce990ab529d504a5a0c5bc538e1c53b3..62a323539226dd265c27d80eef1c60a42bdcb155 100644 (file)
@@ -3989,7 +3989,7 @@ static int dasd_symm_io(struct dasd_device *device, void __user *argp)
        rc = -EFAULT;
        if (copy_from_user(&usrparm, argp, sizeof(usrparm)))
                goto out;
-       if (is_compat_task() || sizeof(long) == 4) {
+       if (is_compat_task()) {
                /* Make sure pointers are sane even on 31 bit. */
                rc = -EINVAL;
                if ((usrparm.psf_data >> 32) != 0)