staging: ccree: remove useless NULL test of field
authorGilad Ben-Yossef <gilad@benyossef.com>
Sun, 23 Apr 2017 09:26:18 +0000 (12:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Apr 2017 10:17:54 +0000 (12:17 +0200)
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>
drivers/staging/ccree/ssi_buffer_mgr.c

index 01401990960c617fb39b8a121d0accc5282e69ab..af50904dc334e5e034cb19448e4bb49f440f530f 100644 (file)
@@ -755,9 +755,7 @@ void ssi_buffer_mgr_unmap_aead_request(
                                AES_BLOCK_SIZE, DMA_TO_DEVICE);
                }
 
-               if (&areq_ctx->ccm_adata_sg != NULL)
-                       dma_unmap_sg(dev, &areq_ctx->ccm_adata_sg,
-                               1, DMA_TO_DEVICE);
+               dma_unmap_sg(dev, &areq_ctx->ccm_adata_sg, 1, DMA_TO_DEVICE);
        }
        if (areq_ctx->gen_ctx.iv_dma_addr != 0) {
                SSI_RESTORE_DMA_ADDR_TO_48BIT(areq_ctx->gen_ctx.iv_dma_addr);