diff mbox

[OPW,kernel] staging:vt6655: Fix open brace placement related error

Message ID 20140314151012.GA3808@gmail.com
State New, archived
Headers show

Commit Message

Jelena Bjelja March 14, 2014, 3:10 p.m. UTC
This patch fixes the following checkpatch error in aes_ccmp.c:
	ERROR: that open brace { should be on the previous line

Signed-off-by: Jelena Bjelja <jelena.bjelja.ing@gmail.com>
---
 drivers/staging/vt6655/aes_ccmp.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Paul E. McKenney March 14, 2014, 3:35 p.m. UTC | #1
On Fri, Mar 14, 2014 at 04:10:12PM +0100, Jelena Bjelja wrote:
> This patch fixes the following checkpatch error in aes_ccmp.c:
> 	ERROR: that open brace { should be on the previous line
> 
> Signed-off-by: Jelena Bjelja <jelena.bjelja.ing@gmail.com>

Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>

> ---
>  drivers/staging/vt6655/aes_ccmp.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/vt6655/aes_ccmp.c b/drivers/staging/vt6655/aes_ccmp.c
> index a1aadcb..ed83de4 100644
> --- a/drivers/staging/vt6655/aes_ccmp.c
> +++ b/drivers/staging/vt6655/aes_ccmp.c
> @@ -204,8 +204,7 @@ static void AESv128(unsigned char *key, unsigned char *data, unsigned char *ciph
>  			SubBytes(ciphertext, TmpdataA);
>  			ShiftRows(TmpdataA, TmpdataB);
>  			xor_128(TmpdataB, abyRoundKey, ciphertext);
> -		} else /* round 1 ~ 9 */
> -		{
> +		} else /* round 1 ~ 9 */{
>  			SubBytes(ciphertext, TmpdataA);
>  			ShiftRows(TmpdataA, TmpdataB);
>  			MixColumns(&TmpdataB[0], &TmpdataA[0]);
> -- 
> 1.7.9.5
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
Waskiewicz Jr, Peter P March 17, 2014, 1:35 a.m. UTC | #2
On Fri, 2014-03-14 at 16:10 +0100, Jelena Bjelja wrote:
> This patch fixes the following checkpatch error in aes_ccmp.c:
> 	ERROR: that open brace { should be on the previous line
> 
> Signed-off-by: Jelena Bjelja <jelena.bjelja.ing@gmail.com>

Applied, thanks.

> ---
>  drivers/staging/vt6655/aes_ccmp.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/vt6655/aes_ccmp.c b/drivers/staging/vt6655/aes_ccmp.c
> index a1aadcb..ed83de4 100644
> --- a/drivers/staging/vt6655/aes_ccmp.c
> +++ b/drivers/staging/vt6655/aes_ccmp.c
> @@ -204,8 +204,7 @@ static void AESv128(unsigned char *key, unsigned char *data, unsigned char *ciph
>  			SubBytes(ciphertext, TmpdataA);
>  			ShiftRows(TmpdataA, TmpdataB);
>  			xor_128(TmpdataB, abyRoundKey, ciphertext);
> -		} else /* round 1 ~ 9 */
> -		{
> +		} else /* round 1 ~ 9 */{
>  			SubBytes(ciphertext, TmpdataA);
>  			ShiftRows(TmpdataA, TmpdataB);
>  			MixColumns(&TmpdataB[0], &TmpdataA[0]);
> -- 
> 1.7.9.5
>
diff mbox

Patch

diff --git a/drivers/staging/vt6655/aes_ccmp.c b/drivers/staging/vt6655/aes_ccmp.c
index a1aadcb..ed83de4 100644
--- a/drivers/staging/vt6655/aes_ccmp.c
+++ b/drivers/staging/vt6655/aes_ccmp.c
@@ -204,8 +204,7 @@  static void AESv128(unsigned char *key, unsigned char *data, unsigned char *ciph
 			SubBytes(ciphertext, TmpdataA);
 			ShiftRows(TmpdataA, TmpdataB);
 			xor_128(TmpdataB, abyRoundKey, ciphertext);
-		} else /* round 1 ~ 9 */
-		{
+		} else /* round 1 ~ 9 */{
 			SubBytes(ciphertext, TmpdataA);
 			ShiftRows(TmpdataA, TmpdataB);
 			MixColumns(&TmpdataB[0], &TmpdataA[0]);