Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: xilinx - Remove un-necessary typecast operation

Return type of crypto_tfm_ctx() is void *. Remove explicit type cast.

Signed-off-by: Harsh Jain <h.jain@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Harsh Jain and committed by
Herbert Xu
856f0619 e9f6870b

+3 -6
+3 -6
drivers/crypto/xilinx/zynqmp-aes-gcm.c
··· 282 282 unsigned int authsize) 283 283 { 284 284 struct crypto_tfm *tfm = crypto_aead_tfm(aead); 285 - struct xilinx_aead_tfm_ctx *tfm_ctx = 286 - (struct xilinx_aead_tfm_ctx *)crypto_tfm_ctx(tfm); 285 + struct xilinx_aead_tfm_ctx *tfm_ctx = crypto_tfm_ctx(tfm); 287 286 288 287 tfm_ctx->authsize = authsize; 289 288 return tfm_ctx->fbk_cipher ? crypto_aead_setauthsize(tfm_ctx->fbk_cipher, authsize) : 0; ··· 371 372 static int xilinx_aes_aead_init(struct crypto_aead *aead) 372 373 { 373 374 struct crypto_tfm *tfm = crypto_aead_tfm(aead); 374 - struct xilinx_aead_tfm_ctx *tfm_ctx = 375 - (struct xilinx_aead_tfm_ctx *)crypto_tfm_ctx(tfm); 375 + struct xilinx_aead_tfm_ctx *tfm_ctx = crypto_tfm_ctx(tfm); 376 376 struct xilinx_aead_alg *drv_ctx; 377 377 struct aead_alg *alg = crypto_aead_alg(aead); 378 378 ··· 420 422 static void xilinx_aes_aead_exit(struct crypto_aead *aead) 421 423 { 422 424 struct crypto_tfm *tfm = crypto_aead_tfm(aead); 423 - struct xilinx_aead_tfm_ctx *tfm_ctx = 424 - (struct xilinx_aead_tfm_ctx *)crypto_tfm_ctx(tfm); 425 + struct xilinx_aead_tfm_ctx *tfm_ctx = crypto_tfm_ctx(tfm); 425 426 426 427 dma_unmap_single(tfm_ctx->dev, tfm_ctx->key_dma_addr, AES_KEYSIZE_256, DMA_TO_DEVICE); 427 428 kfree(tfm_ctx->key);