Commit fc6176a2 authored by Colin Ian King's avatar Colin Ian King Committed by Herbert Xu

crypto: chelsio - clean up various indentation issues

Trivial fix to clean up varous indentation issue
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent b1e3874c
...@@ -1311,8 +1311,8 @@ static int chcr_aes_decrypt(struct ablkcipher_request *req) ...@@ -1311,8 +1311,8 @@ static int chcr_aes_decrypt(struct ablkcipher_request *req)
return -ENOSPC; return -ENOSPC;
} }
err = process_cipher(req, u_ctx->lldi.rxq_ids[c_ctx(tfm)->rx_qidx], err = process_cipher(req, u_ctx->lldi.rxq_ids[c_ctx(tfm)->rx_qidx],
&skb, CHCR_DECRYPT_OP); &skb, CHCR_DECRYPT_OP);
if (err || !skb) if (err || !skb)
return err; return err;
skb->dev = u_ctx->lldi.ports[0]; skb->dev = u_ctx->lldi.ports[0];
...@@ -2008,7 +2008,7 @@ static int chcr_ahash_export(struct ahash_request *areq, void *out) ...@@ -2008,7 +2008,7 @@ static int chcr_ahash_export(struct ahash_request *areq, void *out)
memcpy(state->partial_hash, req_ctx->partial_hash, memcpy(state->partial_hash, req_ctx->partial_hash,
CHCR_HASH_MAX_DIGEST_SIZE); CHCR_HASH_MAX_DIGEST_SIZE);
chcr_init_hctx_per_wr(state); chcr_init_hctx_per_wr(state);
return 0; return 0;
} }
static int chcr_ahash_import(struct ahash_request *areq, const void *in) static int chcr_ahash_import(struct ahash_request *areq, const void *in)
...@@ -2249,7 +2249,7 @@ static int chcr_aead_fallback(struct aead_request *req, unsigned short op_type) ...@@ -2249,7 +2249,7 @@ static int chcr_aead_fallback(struct aead_request *req, unsigned short op_type)
req->base.complete, req->base.data); req->base.complete, req->base.data);
aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen, aead_request_set_crypt(subreq, req->src, req->dst, req->cryptlen,
req->iv); req->iv);
aead_request_set_ad(subreq, req->assoclen); aead_request_set_ad(subreq, req->assoclen);
return op_type ? crypto_aead_decrypt(subreq) : return op_type ? crypto_aead_decrypt(subreq) :
crypto_aead_encrypt(subreq); crypto_aead_encrypt(subreq);
} }
...@@ -3118,12 +3118,12 @@ static int chcr_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) ...@@ -3118,12 +3118,12 @@ static int chcr_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize)
aeadctx->mayverify = VERIFY_HW; aeadctx->mayverify = VERIFY_HW;
break; break;
case ICV_12: case ICV_12:
aeadctx->hmac_ctrl = CHCR_SCMD_HMAC_CTRL_IPSEC_96BIT; aeadctx->hmac_ctrl = CHCR_SCMD_HMAC_CTRL_IPSEC_96BIT;
aeadctx->mayverify = VERIFY_HW; aeadctx->mayverify = VERIFY_HW;
break; break;
case ICV_14: case ICV_14:
aeadctx->hmac_ctrl = CHCR_SCMD_HMAC_CTRL_PL3; aeadctx->hmac_ctrl = CHCR_SCMD_HMAC_CTRL_PL3;
aeadctx->mayverify = VERIFY_HW; aeadctx->mayverify = VERIFY_HW;
break; break;
case ICV_16: case ICV_16:
aeadctx->hmac_ctrl = CHCR_SCMD_HMAC_CTRL_NO_TRUNC; aeadctx->hmac_ctrl = CHCR_SCMD_HMAC_CTRL_NO_TRUNC;
......
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