Commit 524b24ad authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

s390/smp: remove redundant check

condition code "status stored" for sigp sense running always implies
that only the "not running" status bit is set. Therefore no need to
check if it is set.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 569ba7d2
...@@ -158,8 +158,8 @@ static inline int pcpu_running(struct pcpu *pcpu) ...@@ -158,8 +158,8 @@ static inline int pcpu_running(struct pcpu *pcpu)
if (__pcpu_sigp(pcpu->address, sigp_sense_running, if (__pcpu_sigp(pcpu->address, sigp_sense_running,
0, &pcpu->status) != sigp_status_stored) 0, &pcpu->status) != sigp_status_stored)
return 1; return 1;
/* Check for running status */ /* Status stored condition code is equivalent to cpu not running. */
return !(pcpu->status & 0x400); return 0;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment