crypto: api - Remove redundant #ifdef in crypto_yield()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 26 Jul 2019 20:19:07 +0000 (22:19 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Aug 2019 04:45:13 +0000 (14:45 +1000)
commitf9981bc53825de2c001659d35c870786771f1e90
tree1466c732fc5dcb3fc64c73f1ee9216a9c38b2ece
parent3e75241be8081f22f7382f4041496b10a4d9aed0
crypto: api - Remove redundant #ifdef in crypto_yield()

While looking at CONFIG_PREEMPT dependencies treewide the #ifdef in
crypto_yield() matched.

CONFIG_PREEMPT and CONFIG_PREEMPT_VOLUNTARY are mutually exclusive so the
extra !CONFIG_PREEMPT conditional is redundant.

cond_resched() has only an effect when CONFIG_PREEMPT_VOLUNTARY is set,
otherwise it's a stub which the compiler optimizes out.

Remove the whole conditional.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-crypto@vger.kernel.org
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/algapi.h