* [PATCH] crypto: chelsio - Delete stray tabs in create_authenc_wr()
@ 2018-01-22 10:21 Dan Carpenter
2018-01-23 4:10 ` Harsh Jain
0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2018-01-22 10:21 UTC (permalink / raw)
To: Harsh Jain; +Cc: Herbert Xu, David S. Miller, linux-crypto, kernel-janitors
We removed some if statements but left these statements indented too
far.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/drivers/crypto/chelsio/chcr_algo.c b/drivers/crypto/chelsio/chcr_algo.c
index a9c894bf9c01..34a02d690548 100644
--- a/drivers/crypto/chelsio/chcr_algo.c
+++ b/drivers/crypto/chelsio/chcr_algo.c
@@ -2112,11 +2112,11 @@ static struct sk_buff *create_authenc_wr(struct aead_request *req,
error = chcr_aead_common_init(req, op_type);
if (error)
return ERR_PTR(error);
- dnents = sg_nents_xlen(req->dst, assoclen, CHCR_DST_SG_SIZE, 0);
- dnents += sg_nents_xlen(req->dst, req->cryptlen +
- (op_type ? -authsize : authsize), CHCR_DST_SG_SIZE,
- req->assoclen);
- dnents += MIN_AUTH_SG; // For IV
+ dnents = sg_nents_xlen(req->dst, assoclen, CHCR_DST_SG_SIZE, 0);
+ dnents += sg_nents_xlen(req->dst, req->cryptlen +
+ (op_type ? -authsize : authsize), CHCR_DST_SG_SIZE,
+ req->assoclen);
+ dnents += MIN_AUTH_SG; // For IV
dst_size = get_space_for_phys_dsgl(dnents);
kctx_len = (ntohl(KEY_CONTEXT_CTX_LEN_V(aeadctx->key_ctx_hdr)) << 4)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: chelsio - Delete stray tabs in create_authenc_wr()
2018-01-22 10:21 [PATCH] crypto: chelsio - Delete stray tabs in create_authenc_wr() Dan Carpenter
@ 2018-01-23 4:10 ` Harsh Jain
0 siblings, 0 replies; 2+ messages in thread
From: Harsh Jain @ 2018-01-23 4:10 UTC (permalink / raw)
To: Dan Carpenter; +Cc: Herbert Xu, David S. Miller, linux-crypto, kernel-janitors
On 22-01-2018 15:51, Dan Carpenter wrote:
> We removed some if statements but left these statements indented too
> far.
HI Dan,
Change already applied to cryptodev tree.
https://www.mail-archive.com/linux-crypto@vger.kernel.org/msg30560.html
>
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>
> diff --git a/drivers/crypto/chelsio/chcr_algo.c b/drivers/crypto/chelsio/chcr_algo.c
> index a9c894bf9c01..34a02d690548 100644
> --- a/drivers/crypto/chelsio/chcr_algo.c
> +++ b/drivers/crypto/chelsio/chcr_algo.c
> @@ -2112,11 +2112,11 @@ static struct sk_buff *create_authenc_wr(struct aead_request *req,
> error = chcr_aead_common_init(req, op_type);
> if (error)
> return ERR_PTR(error);
> - dnents = sg_nents_xlen(req->dst, assoclen, CHCR_DST_SG_SIZE, 0);
> - dnents += sg_nents_xlen(req->dst, req->cryptlen +
> - (op_type ? -authsize : authsize), CHCR_DST_SG_SIZE,
> - req->assoclen);
> - dnents += MIN_AUTH_SG; // For IV
> + dnents = sg_nents_xlen(req->dst, assoclen, CHCR_DST_SG_SIZE, 0);
> + dnents += sg_nents_xlen(req->dst, req->cryptlen +
> + (op_type ? -authsize : authsize), CHCR_DST_SG_SIZE,
> + req->assoclen);
> + dnents += MIN_AUTH_SG; // For IV
>
> dst_size = get_space_for_phys_dsgl(dnents);
> kctx_len = (ntohl(KEY_CONTEXT_CTX_LEN_V(aeadctx->key_ctx_hdr)) << 4)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-23 4:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-22 10:21 [PATCH] crypto: chelsio - Delete stray tabs in create_authenc_wr() Dan Carpenter
2018-01-23 4:10 ` Harsh Jain
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox