Commit f3542e6d7b246e88b038e608358606ddd1f09870
Committed by
Herbert Xu
1 parent
3d01a33b77
Exists in
master
and in
20 other branches
crypto: authenc - Fix checkpatch errors
Signed-off-by: Richard Hartmann <richih.mailinglist@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff
crypto/authenc.c
... | ... | @@ -194,7 +194,7 @@ |
194 | 194 | scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen, |
195 | 195 | authsize, 0); |
196 | 196 | |
197 | - err = memcmp(ihash, ahreq->result, authsize) ? -EBADMSG: 0; | |
197 | + err = memcmp(ihash, ahreq->result, authsize) ? -EBADMSG : 0; | |
198 | 198 | if (err) |
199 | 199 | goto out; |
200 | 200 | |
... | ... | @@ -231,7 +231,7 @@ |
231 | 231 | scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen, |
232 | 232 | authsize, 0); |
233 | 233 | |
234 | - err = memcmp(ihash, ahreq->result, authsize) ? -EBADMSG: 0; | |
234 | + err = memcmp(ihash, ahreq->result, authsize) ? -EBADMSG : 0; | |
235 | 235 | if (err) |
236 | 236 | goto out; |
237 | 237 | |
... | ... | @@ -464,7 +464,7 @@ |
464 | 464 | ihash = ohash + authsize; |
465 | 465 | scatterwalk_map_and_copy(ihash, areq_ctx->sg, areq_ctx->cryptlen, |
466 | 466 | authsize, 0); |
467 | - return memcmp(ihash, ohash, authsize) ? -EBADMSG: 0; | |
467 | + return memcmp(ihash, ohash, authsize) ? -EBADMSG : 0; | |
468 | 468 | } |
469 | 469 | |
470 | 470 | static int crypto_authenc_iverify(struct aead_request *req, u8 *iv, |
471 | 471 | |
... | ... | @@ -557,11 +557,11 @@ |
557 | 557 | |
558 | 558 | ctx->auth = auth; |
559 | 559 | ctx->enc = enc; |
560 | - | |
560 | + | |
561 | 561 | tfm->crt_aead.reqsize = max_t(unsigned int, |
562 | 562 | crypto_ahash_reqsize(auth) + ctx->reqoff + |
563 | 563 | sizeof(struct authenc_request_ctx) + |
564 | - sizeof(struct ahash_request), | |
564 | + sizeof(struct ahash_request), | |
565 | 565 | sizeof(struct skcipher_givcrypt_request) + |
566 | 566 | crypto_ablkcipher_reqsize(enc) + |
567 | 567 | crypto_ablkcipher_ivsize(enc)); |