2014-12-05 05:44:59

by Joshua I. James

[permalink] [raw]
Subject: [PATCH] staging: crypto: fixed style error in ahash.c

From: "Joshua I. James" <[email protected]>

Fixed style error identified by checkpatch.

WARNING: Missing a blank line after declarations
+ unsigned int unaligned = alignmask + 1 - (offset & alignmask);
+ if (nbytes > unaligned)

Signed-off-by: Joshua I. James <[email protected]>
---
crypto/ahash.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/crypto/ahash.c b/crypto/ahash.c
index f6a36a5..dd28906 100644
--- a/crypto/ahash.c
+++ b/crypto/ahash.c
@@ -55,6 +55,7 @@ static int hash_walk_next(struct crypto_hash_walk *walk)

if (offset & alignmask) {
unsigned int unaligned = alignmask + 1 - (offset & alignmask);
+
if (nbytes > unaligned)
nbytes = unaligned;
}
--
1.9.1


2014-12-05 13:54:43

by Jason Cooper

[permalink] [raw]
Subject: Re: [PATCH] staging: crypto: fixed style error in ahash.c

On Fri, Dec 05, 2014 at 02:44:54PM +0900, Joshua I. James wrote:
> From: "Joshua I. James" <[email protected]>
>
> Fixed style error identified by checkpatch.
>
> WARNING: Missing a blank line after declarations
> + unsigned int unaligned = alignmask + 1 - (offset & alignmask);
> + if (nbytes > unaligned)
>
> Signed-off-by: Joshua I. James <[email protected]>
> ---
> crypto/ahash.c | 1 +
> 1 file changed, 1 insertion(+)

Same comment as the third patch.

thx,

Jason.

>
> diff --git a/crypto/ahash.c b/crypto/ahash.c
> index f6a36a5..dd28906 100644
> --- a/crypto/ahash.c
> +++ b/crypto/ahash.c
> @@ -55,6 +55,7 @@ static int hash_walk_next(struct crypto_hash_walk *walk)
>
> if (offset & alignmask) {
> unsigned int unaligned = alignmask + 1 - (offset & alignmask);
> +
> if (nbytes > unaligned)
> nbytes = unaligned;
> }
> --
> 1.9.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>