]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
KVM: s390: get rid of bogus cc initialization
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Tue, 13 Dec 2016 13:25:32 +0000 (14:25 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 30 Jan 2017 10:17:28 +0000 (11:17 +0100)
The plo inline assembly has a cc output operand that is always written
to and is also as such an operand declared. Therefore the compiler is
free to omit the rather pointless and misleading initialization.

Get rid of this.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c

index e5130818fb0382e8e294e696a222103667a2b790..4f74511015b872d7c3c9d3c859305cb5b0f34fa2 100644 (file)
@@ -217,7 +217,7 @@ static void allow_cpu_feat(unsigned long nr)
 static inline int plo_test_bit(unsigned char nr)
 {
        register unsigned long r0 asm("0") = (unsigned long) nr | 0x100;
-       int cc = 3; /* subfunction not available */
+       int cc;
 
        asm volatile(
                /* Parameter registers are ignored for "test bit" */