diff mbox

staging: crypto: fixed style error in ahash.c

Message ID 1417758294-22850-1-git-send-email-Joshua@cybercrimetech.com (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show

Commit Message

Joshua I. James Dec. 5, 2014, 5:44 a.m. UTC
From: "Joshua I. James" <joshua@cybercrimetech.com>

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 <joshua@cybercrimetech.com>
---
 crypto/ahash.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jason Cooper Dec. 5, 2014, 1:54 p.m. UTC | #1
On Fri, Dec 05, 2014 at 02:44:54PM +0900, Joshua I. James wrote:
> From: "Joshua I. James" <joshua@cybercrimetech.com>
> 
> 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 <joshua@cybercrimetech.com>
> ---
>  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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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;
 	}