Commit b426144f authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by Greg Kroah-Hartman

staging: ccree: move logical cont. to 1st line

Move logical continuations to first line for readability.
Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent df33d792
...@@ -1473,8 +1473,8 @@ int cc_map_hash_request_final(struct ssi_drvdata *drvdata, void *ctx, ...@@ -1473,8 +1473,8 @@ int cc_map_hash_request_final(struct ssi_drvdata *drvdata, void *ctx,
&dummy, &mapped_nents))) { &dummy, &mapped_nents))) {
goto unmap_curr_buff; goto unmap_curr_buff;
} }
if (src && mapped_nents == 1 if (src && mapped_nents == 1 &&
&& areq_ctx->data_dma_buf_type == SSI_DMA_BUF_NULL) { areq_ctx->data_dma_buf_type == SSI_DMA_BUF_NULL) {
memcpy(areq_ctx->buff_sg, src, memcpy(areq_ctx->buff_sg, src,
sizeof(struct scatterlist)); sizeof(struct scatterlist));
areq_ctx->buff_sg->length = nbytes; areq_ctx->buff_sg->length = nbytes;
...@@ -1590,8 +1590,8 @@ int cc_map_hash_request_update(struct ssi_drvdata *drvdata, void *ctx, ...@@ -1590,8 +1590,8 @@ int cc_map_hash_request_update(struct ssi_drvdata *drvdata, void *ctx,
&mapped_nents))) { &mapped_nents))) {
goto unmap_curr_buff; goto unmap_curr_buff;
} }
if (mapped_nents == 1 if (mapped_nents == 1 &&
&& areq_ctx->data_dma_buf_type == SSI_DMA_BUF_NULL) { areq_ctx->data_dma_buf_type == SSI_DMA_BUF_NULL) {
/* only one entry in the SG and no previous data */ /* only one entry in the SG and no previous data */
memcpy(areq_ctx->buff_sg, src, memcpy(areq_ctx->buff_sg, src,
sizeof(struct scatterlist)); sizeof(struct scatterlist));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment