mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 22:36:17 +01:00
crypto: cesa - Simplify return statement in mv_cesa_dequeue_req_locked
Return the result of calling crypto_dequeue_request() directly and remove the local return variable. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
a22d48cbe5
commit
cd966e406b
1 changed files with 1 additions and 7 deletions
|
|
@ -38,15 +38,9 @@ struct crypto_async_request *
|
|||
mv_cesa_dequeue_req_locked(struct mv_cesa_engine *engine,
|
||||
struct crypto_async_request **backlog)
|
||||
{
|
||||
struct crypto_async_request *req;
|
||||
|
||||
*backlog = crypto_get_backlog(&engine->queue);
|
||||
req = crypto_dequeue_request(&engine->queue);
|
||||
|
||||
if (!req)
|
||||
return NULL;
|
||||
|
||||
return req;
|
||||
return crypto_dequeue_request(&engine->queue);
|
||||
}
|
||||
|
||||
static void mv_cesa_rearm_engine(struct mv_cesa_engine *engine)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue