crypto: ablkcipher - fixed style errors in ablkcipher.c
authorJoshua I. James <joshua@cybercrimetech.com>
Fri, 5 Dec 2014 05:06:16 +0000 (14:06 +0900)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 22 Dec 2014 12:02:35 +0000 (23:02 +1100)
commita861afbc931b489b3b2362f8011cccd2a071ec37
tree22305cf312bee035283ff777c1e220e1e69b6408
parentbe95f0fa0cde56bb05ed62488a25a73a5b21b2d9
crypto: ablkcipher - fixed style errors in ablkcipher.c

Fixed style errors reported by checkpatch.

WARNING: Missing a blank line after declarations
+       u8 *end_page = (u8 *)(((unsigned long)(start + len - 1)) & PAGE_MASK);
+       return max(start, end_page);

WARNING: line over 80 characters
+               scatterwalk_start(&walk->out, scatterwalk_sg_next(walk->out.sg));

WARNING: Missing a blank line after declarations
+               int err = ablkcipher_copy_iv(walk, tfm, alignmask);
+               if (err)

ERROR: do not use assignment in if condition
+       if ((err = crypto_register_instance(tmpl, inst))) {

Signed-off-by: Joshua I. James <joshua@cybercrimetech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ablkcipher.c