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

staging: ccree: remove useless NULL test of field

Remove kbuild test robot reported NULL check for a struct field address.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gilad Ben-Yossef and committed by
Greg Kroah-Hartman
abb5f0c6 a35f1eb4

+1 -3
+1 -3
drivers/staging/ccree/ssi_buffer_mgr.c
··· 755 755 AES_BLOCK_SIZE, DMA_TO_DEVICE); 756 756 } 757 757 758 - if (&areq_ctx->ccm_adata_sg != NULL) 759 - dma_unmap_sg(dev, &areq_ctx->ccm_adata_sg, 760 - 1, DMA_TO_DEVICE); 758 + dma_unmap_sg(dev, &areq_ctx->ccm_adata_sg, 1, DMA_TO_DEVICE); 761 759 } 762 760 if (areq_ctx->gen_ctx.iv_dma_addr != 0) { 763 761 SSI_RESTORE_DMA_ADDR_TO_48BIT(areq_ctx->gen_ctx.iv_dma_addr);