[OPW,kernel] staging: vt6656: removed space after '*' in pointer declaration
diff mbox

Message ID 1382897235-19047-1-git-send-email-nandu.hgowda@gmail.com
State Accepted
Headers show

Commit Message

nandini h Oct. 27, 2013, 6:07 p.m. UTC
space after '*' in pointer declaration is not preferred in linux
and results in checkpatch error. Hence removed the spaces present
after the '*' in pointer declarations to fix the checkpatch errors

Signed-off-by: Nandini Hanumanthagowda <nandu.hgowda@gmail.com>
---
 drivers/staging/vt6656/aes_ccmp.c |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

Comments

Lisa Nguyen Oct. 27, 2013, 8:31 p.m. UTC | #1
On Sun, Oct 27, 2013 at 11:07 AM, Nandini Hanumanthagowda
<nandu.hgowda@gmail.com> wrote:
> space after '*' in pointer declaration is not preferred in linux
> and results in checkpatch error. Hence removed the spaces present
> after the '*' in pointer declarations to fix the checkpatch errors
>
> Signed-off-by: Nandini Hanumanthagowda <nandu.hgowda@gmail.com>

Reviewed-by: Lisa Nguyen <lisa@xenapiadmin.com>

> ---
>  drivers/staging/vt6656/aes_ccmp.c |   18 +++++++++---------
>  1 file changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/staging/vt6656/aes_ccmp.c b/drivers/staging/vt6656/aes_ccmp.c
> index 28a4c4c..6c76939 100644
> --- a/drivers/staging/vt6656/aes_ccmp.c
> +++ b/drivers/staging/vt6656/aes_ccmp.c
> @@ -96,9 +96,9 @@ u8 dot3_table[256] = {
>
>  static void xor_128(u8 *a, u8 *b, u8 *out)
>  {
> -       u32 * dwPtrA = (u32 *) a;
> -       u32 * dwPtrB = (u32 *) b;
> -       u32 * dwPtrOut = (u32 *) out;
> +       u32 *dwPtrA = (u32 *) a;
> +       u32 *dwPtrB = (u32 *) b;
> +       u32 *dwPtrOut = (u32 *) out;
>
>         (*dwPtrOut++) = (*dwPtrA++) ^ (*dwPtrB++);
>         (*dwPtrOut++) = (*dwPtrA++) ^ (*dwPtrB++);
> @@ -108,9 +108,9 @@ static void xor_128(u8 *a, u8 *b, u8 *out)
>
>  static void xor_32(u8 *a, u8 *b, u8 *out)
>  {
> -       u32 * dwPtrA = (u32 *) a;
> -       u32 * dwPtrB = (u32 *) b;
> -       u32 * dwPtrOut = (u32 *) out;
> +       u32 *dwPtrA = (u32 *) a;
> +       u32 *dwPtrB = (u32 *) b;
> +       u32 *dwPtrOut = (u32 *) out;
>
>         (*dwPtrOut++) = (*dwPtrA++) ^ (*dwPtrB++);
>  }
> @@ -218,7 +218,7 @@ void AESv128(u8 *key, u8 *data, u8 *ciphertext)
>   *
>   */
>
> -bool AESbGenCCMP(u8 * pbyRxKey, u8 * pbyFrame, u16 wFrameSize)
> +bool AESbGenCCMP(u8 *pbyRxKey, u8 *pbyFrame, u16 wFrameSize)
>  {
>         u8            abyNonce[13];
>         u8            MIC_IV[16];
> @@ -231,8 +231,8 @@ bool AESbGenCCMP(u8 * pbyRxKey, u8 * pbyFrame, u16 wFrameSize)
>         u8            abyLastCipher[16];
>
>         struct ieee80211_hdr *pMACHeader = (struct ieee80211_hdr *) pbyFrame;
> -       u8 *           pbyIV;
> -       u8 *           pbyPayload;
> +       u8 *pbyIV;
> +       u8 *pbyPayload;
>         u16            wHLen = 22;
>         /* 8 is IV, 8 is MIC, 4 is CRC */
>         u16            wPayloadSize = wFrameSize - 8 - 8 - 4 - WLAN_HDR_ADDR3_LEN;
> --
> 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/groups/opt_out.

Patch
diff mbox

diff --git a/drivers/staging/vt6656/aes_ccmp.c b/drivers/staging/vt6656/aes_ccmp.c
index 28a4c4c..6c76939 100644
--- a/drivers/staging/vt6656/aes_ccmp.c
+++ b/drivers/staging/vt6656/aes_ccmp.c
@@ -96,9 +96,9 @@  u8 dot3_table[256] = {
 
 static void xor_128(u8 *a, u8 *b, u8 *out)
 {
-	u32 * dwPtrA = (u32 *) a;
-	u32 * dwPtrB = (u32 *) b;
-	u32 * dwPtrOut = (u32 *) out;
+	u32 *dwPtrA = (u32 *) a;
+	u32 *dwPtrB = (u32 *) b;
+	u32 *dwPtrOut = (u32 *) out;
 
 	(*dwPtrOut++) = (*dwPtrA++) ^ (*dwPtrB++);
 	(*dwPtrOut++) = (*dwPtrA++) ^ (*dwPtrB++);
@@ -108,9 +108,9 @@  static void xor_128(u8 *a, u8 *b, u8 *out)
 
 static void xor_32(u8 *a, u8 *b, u8 *out)
 {
-	u32 * dwPtrA = (u32 *) a;
-	u32 * dwPtrB = (u32 *) b;
-	u32 * dwPtrOut = (u32 *) out;
+	u32 *dwPtrA = (u32 *) a;
+	u32 *dwPtrB = (u32 *) b;
+	u32 *dwPtrOut = (u32 *) out;
 
 	(*dwPtrOut++) = (*dwPtrA++) ^ (*dwPtrB++);
 }
@@ -218,7 +218,7 @@  void AESv128(u8 *key, u8 *data, u8 *ciphertext)
  *
  */
 
-bool AESbGenCCMP(u8 * pbyRxKey, u8 * pbyFrame, u16 wFrameSize)
+bool AESbGenCCMP(u8 *pbyRxKey, u8 *pbyFrame, u16 wFrameSize)
 {
 	u8            abyNonce[13];
 	u8            MIC_IV[16];
@@ -231,8 +231,8 @@  bool AESbGenCCMP(u8 * pbyRxKey, u8 * pbyFrame, u16 wFrameSize)
 	u8            abyLastCipher[16];
 
 	struct ieee80211_hdr *pMACHeader = (struct ieee80211_hdr *) pbyFrame;
-	u8 *           pbyIV;
-	u8 *           pbyPayload;
+	u8 *pbyIV;
+	u8 *pbyPayload;
 	u16            wHLen = 22;
 	/* 8 is IV, 8 is MIC, 4 is CRC */
 	u16            wPayloadSize = wFrameSize - 8 - 8 - 4 - WLAN_HDR_ADDR3_LEN;