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

staging: ccree remove unnecessary parentheses



Remove unnecessary parentheses from ccree driver code.

Signed-off-by: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f47d8b11
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ static void ssi_aead_exit(struct crypto_aead *tfm)
	struct ssi_aead_ctx *ctx = crypto_aead_ctx(tfm);

	SSI_LOG_DEBUG("Clearing context @%p for %s\n",
		crypto_aead_ctx(tfm), crypto_tfm_alg_name(&(tfm->base)));
		crypto_aead_ctx(tfm), crypto_tfm_alg_name(&tfm->base));

	dev = &ctx->drvdata->plat_dev->dev;
	/* Unmap enckey buffer */
@@ -143,7 +143,7 @@ static int ssi_aead_init(struct crypto_aead *tfm)
	struct ssi_aead_ctx *ctx = crypto_aead_ctx(tfm);
	struct ssi_crypto_alg *ssi_alg =
			container_of(alg, struct ssi_crypto_alg, aead_alg);
	SSI_LOG_DEBUG("Initializing context @%p for %s\n", ctx, crypto_tfm_alg_name(&(tfm->base)));
	SSI_LOG_DEBUG("Initializing context @%p for %s\n", ctx, crypto_tfm_alg_name(&tfm->base));

	/* Initialize modes in instance */
	ctx->cipher_mode = ssi_alg->cipher_mode;
+4 −4
Original line number Diff line number Diff line
@@ -221,7 +221,7 @@ static int ssi_buffer_mgr_generate_mlli(
	/* Allocate memory from the pointed pool */
	mlli_params->mlli_virt_addr = dma_pool_alloc(
			mlli_params->curr_pool, GFP_KERNEL,
			&(mlli_params->mlli_dma_addr));
			&mlli_params->mlli_dma_addr);
	if (unlikely(!mlli_params->mlli_virt_addr)) {
		SSI_LOG_ERR("dma_pool_alloc() failed\n");
		rc = -ENOMEM;
@@ -249,7 +249,7 @@ static int ssi_buffer_mgr_generate_mlli(
			/*Calculate the current MLLI table length for the
			 *length field in the descriptor
			 */
			*(sg_data->mlli_nents[i]) +=
			*sg_data->mlli_nents[i] +=
				(total_nents - prev_total_nents);
			prev_total_nents = total_nents;
		}
@@ -1176,7 +1176,7 @@ static inline int ssi_buffer_mgr_aead_chain_data(

		rc = ssi_buffer_mgr_map_scatterlist(dev, req->dst, size_for_map,
						    DMA_BIDIRECTIONAL,
						    &(areq_ctx->dst.nents),
						    &areq_ctx->dst.nents,
						    LLI_MAX_NUM_OF_DATA_ENTRIES,
						    &dst_last_bytes,
						    &dst_mapped_nents);
@@ -1407,7 +1407,7 @@ int ssi_buffer_mgr_map_aead_request(
	if (is_gcm4543)
		size_to_map += crypto_aead_ivsize(tfm);
	rc = ssi_buffer_mgr_map_scatterlist(dev, req->src,
					    size_to_map, DMA_BIDIRECTIONAL, &(areq_ctx->src.nents),
					    size_to_map, DMA_BIDIRECTIONAL, &areq_ctx->src.nents,
					    LLI_MAX_NUM_OF_ASSOC_DATA_ENTRIES + LLI_MAX_NUM_OF_DATA_ENTRIES, &dummy, &mapped_nents);
	if (unlikely(rc != 0)) {
		rc = -ENOMEM;
+1 −1
Original line number Diff line number Diff line
@@ -327,7 +327,7 @@ static int init_cc_resources(struct platform_device *plat_dev)
	}

#ifdef ENABLE_CC_SYSFS
	rc = ssi_sysfs_init(&(plat_dev->dev.kobj), new_drvdata);
	rc = ssi_sysfs_init(&plat_dev->dev.kobj, new_drvdata);
	if (unlikely(rc != 0)) {
		SSI_LOG_ERR("init_stat_db failed\n");
		goto init_cc_res_err;
+1 −1
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ int ssi_ivgen_init_sram_pool(struct ssi_drvdata *drvdata)
void ssi_ivgen_fini(struct ssi_drvdata *drvdata)
{
	struct ssi_ivgen_ctx *ivgen_ctx = drvdata->ivgen_handle;
	struct device *device = &(drvdata->plat_dev->dev);
	struct device *device = &drvdata->plat_dev->dev;

	if (!ivgen_ctx)
		return;
+1 −1
Original line number Diff line number Diff line
@@ -317,7 +317,7 @@ int send_request(
	if (!is_dout) {
		init_completion(&ssi_req->seq_compl);
		ssi_req->user_cb = request_mgr_complete;
		ssi_req->user_arg = &(ssi_req->seq_compl);
		ssi_req->user_arg = &ssi_req->seq_compl;
		total_seq_len++;
	}

Loading