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

staging: ccree: remove braces for single statement



Remove necessary braces for single statement blocks to
improve code readabilty.

Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 474f75a1
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1491,10 +1491,9 @@ int cc_map_hash_request_final(struct ssi_drvdata *drvdata, void *ctx,
		/* add the src data to the sg_data */
		cc_add_sg_entry(dev, &sg_data, areq_ctx->in_nents, src, nbytes,
				0, true, &areq_ctx->mlli_nents);
		if (unlikely(cc_generate_mlli(dev, &sg_data, mlli_params))) {
		if (unlikely(cc_generate_mlli(dev, &sg_data, mlli_params)))
			goto fail_unmap_din;
	}
	}
	/* change the buffer index for the unmap function */
	areq_ctx->buff_index = (areq_ctx->buff_index ^ 1);
	dev_dbg(dev, "areq_ctx->data_dma_buf_type = %s\n",
@@ -1610,10 +1609,9 @@ int cc_map_hash_request_update(struct ssi_drvdata *drvdata, void *ctx,
		cc_add_sg_entry(dev, &sg_data, areq_ctx->in_nents, src,
				(update_data_len - *curr_buff_cnt), 0, true,
				&areq_ctx->mlli_nents);
		if (unlikely(cc_generate_mlli(dev, &sg_data, mlli_params))) {
		if (unlikely(cc_generate_mlli(dev, &sg_data, mlli_params)))
			goto fail_unmap_din;
	}
	}
	areq_ctx->buff_index = (areq_ctx->buff_index ^ swap_index);

	return 0;