Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abb5f0c6 authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by Greg Kroah-Hartman
Browse files

staging: ccree: remove useless NULL test of field



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

Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a35f1eb4
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);