diff options
Diffstat (limited to 'include/crypto/algapi.h')
-rw-r--r-- | include/crypto/algapi.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h index dc1106af95c3..e5bd302f2c49 100644 --- a/include/crypto/algapi.h +++ b/include/crypto/algapi.h | |||
@@ -409,10 +409,8 @@ static inline int crypto_memneq(const void *a, const void *b, size_t size) | |||
409 | 409 | ||
410 | static inline void crypto_yield(u32 flags) | 410 | static inline void crypto_yield(u32 flags) |
411 | { | 411 | { |
412 | #if !defined(CONFIG_PREEMPT) || defined(CONFIG_PREEMPT_VOLUNTARY) | ||
413 | if (flags & CRYPTO_TFM_REQ_MAY_SLEEP) | 412 | if (flags & CRYPTO_TFM_REQ_MAY_SLEEP) |
414 | cond_resched(); | 413 | cond_resched(); |
415 | #endif | ||
416 | } | 414 | } |
417 | 415 | ||
418 | int crypto_register_notifier(struct notifier_block *nb); | 416 | int crypto_register_notifier(struct notifier_block *nb); |