]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: cesa - Simplify return statement in mv_cesa_dequeue_req_locked
authorThorsten Blum <thorsten.blum@linux.dev>
Sat, 31 Jan 2026 21:42:47 +0000 (22:42 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Feb 2026 10:52:22 +0000 (18:52 +0800)
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>
drivers/crypto/marvell/cesa/cesa.c

index 301bdf239e7d6c3d790687511579c823d2db205a..8afa3a87e38df370ffa6e63a599b87f2a500117a 100644 (file)
@@ -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)