diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2017-04-23 12:26:18 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-28 12:17:54 +0200 |
commit | abb5f0c6026816f4f8e4b68d4d4dc329c239cf36 (patch) | |
tree | 46367d0c1ca7b7e9c1e0e2c30b18ad4c8f5fa1ee | |
parent | a35f1eb4622a22d28ee8bc7ad53ba448b8f219bd (diff) | |
download | blackbird-op-linux-abb5f0c6026816f4f8e4b68d4d4dc329c239cf36.tar.gz blackbird-op-linux-abb5f0c6026816f4f8e4b68d4d4dc329c239cf36.zip |
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>
-rw-r--r-- | drivers/staging/ccree/ssi_buffer_mgr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/ccree/ssi_buffer_mgr.c b/drivers/staging/ccree/ssi_buffer_mgr.c index 01401990960c..af50904dc334 100644 --- a/drivers/staging/ccree/ssi_buffer_mgr.c +++ b/drivers/staging/ccree/ssi_buffer_mgr.c @@ -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); |