]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: atmel-i2c - drop redundant void * callback cast in enqueue
authorThorsten Blum <thorsten.blum@linux.dev>
Fri, 15 May 2026 20:29:48 +0000 (22:29 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2026 12:25:30 +0000 (20:25 +0800)
The callback already has the correct type - remove the redundant cast.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-i2c.c

index 0e275dbdc8c5508f99b492227c1705773776ab3c..ff19857894d05a3c6d573c78779f730a0e23b25a 100644 (file)
@@ -294,7 +294,7 @@ void atmel_i2c_enqueue(struct atmel_i2c_work_data *work_data,
                                   void *areq, int status),
                       void *areq)
 {
-       work_data->cbk = (void *)cbk;
+       work_data->cbk = cbk;
        work_data->areq = areq;
 
        INIT_WORK(&work_data->work, atmel_i2c_work_handler);