Skip to content

Commit

Permalink
crypto: des_generic - Fix checkpatch errors
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Hartmann <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
RichiH authored and herbertx committed Feb 16, 2010
1 parent 9472d76 commit a501121
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crypto/des_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,7 @@ static int des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key,

if (unlikely(!((K[0] ^ K[2]) | (K[1] ^ K[3])) ||
!((K[2] ^ K[4]) | (K[3] ^ K[5]))) &&
(*flags & CRYPTO_TFM_REQ_WEAK_KEY))
{
(*flags & CRYPTO_TFM_REQ_WEAK_KEY)) {
*flags |= CRYPTO_TFM_RES_WEAK_KEY;
return -EINVAL;
}
Expand Down

0 comments on commit a501121

Please sign in to comment.