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: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
Heiko Carstens 2012-06-04 12:11:41 +02:00 коммит произвёл Martin Schwidefsky
Родитель 569ba7d208
Коммит 524b24ada7
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -158,8 +158,8 @@ static inline int pcpu_running(struct pcpu *pcpu)
if (__pcpu_sigp(pcpu->address, sigp_sense_running,
0, &pcpu->status) != sigp_status_stored)
return 1;
/* Check for running status */
return !(pcpu->status & 0x400);
/* Status stored condition code is equivalent to cpu not running. */
return 0;
}
/*