diff mbox

[OPW,kernel,04/11] staging: vt6656: fixed whitespace related error and warning

Message ID 1384208208-12564-4-git-send-email-nandu.hgowda@gmail.com
State New, archived
Headers show

Commit Message

nandini h Nov. 11, 2013, 10:16 p.m. UTC
removed the "trailing whitespace" error and "unnecessary whitespace
before quoted new line" warning reported by checkpatch script

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

Comments

Andrew Grover Nov. 11, 2013, 10:30 p.m. UTC | #1
On Mon, Nov 11, 2013 at 2:16 PM, Nandini Hanumanthagowda <
nandu.hgowda@gmail.com> wrote:

> removed the "trailing whitespace" error and "unnecessary whitespace
> before quoted new line" warning reported by checkpatch script
>
> Signed-off-by: Nandini Hanumanthagowda <nandu.hgowda@gmail.com>
> ---
>  drivers/staging/vt6656/wcmd.c |   14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656/wcmd.c
> index 55f0dbd..68485b6 100644
> --- a/drivers/staging/vt6656/wcmd.c
> +++ b/drivers/staging/vt6656/wcmd.c
> @@ -182,7 +182,7 @@ static void s_vProbeChannel(struct vnt_private
> *pDevice)
>                 pbyRate = &abyCurrSuppRatesB[0];
>         else
>                 pbyRate = &abyCurrSuppRatesG[0];
> -
> +
>      // build an assocreq frame and send it
>      pTxPacket = s_MgrMakeProbeRequest
>                  (
> @@ -197,9 +197,9 @@ static void s_vProbeChannel(struct vnt_private
> *pDevice)
>      if (pTxPacket != NULL) {
>          for (ii = 0; ii < 1; ii++) {
>              if (csMgmt_xmit(pDevice, pTxPacket) != CMD_STATUS_PENDING) {
> -                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Probe request sending
> fail.. \n");
> +                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Probe request sending
> fail..\n");
>             } else {
> -                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Probe request is
> sending.. \n");
> +                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Probe request is
> sending..\n");
>             }
>          }
>      }
> @@ -319,7 +319,7 @@ void vRunCommand(struct work_struct *work)
>
>              } else {
>                  if (!ChannelValid(pDevice->byZoneType,
> pMgmt->uScanChannel)) {
> -                    DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Invalid channel
> pMgmt->uScanChannel = %d \n", pMgmt->uScanChannel);
> +                    DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Invalid channel
> pMgmt->uScanChannel = %d\n", pMgmt->uScanChannel);
>                         pMgmt->uScanChannel++;
>                      s_bCommandComplete(pDevice);
>                      spin_unlock_irq(&pDevice->lock);
> @@ -704,7 +704,7 @@ void vRunCommand(struct work_struct *work)
>                      }
>
>                      if (nsDMA_tx_packet(pDevice, TYPE_AC0DMA, skb) != 0)
> -                        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Multicast ps
> tx fail \n");
> +                        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Multicast ps
> tx fail\n");
>
>                      pMgmt->sNodeDBTable[0].wEnQueueCnt--;
>                  }
> @@ -727,7 +727,7 @@ void vRunCommand(struct work_struct *work)
>                          }
>
>                          if (nsDMA_tx_packet(pDevice, TYPE_AC0DMA, skb) !=
> 0)
> -                            DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "sta ps tx
> fail \n");
> +                            DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "sta ps tx
> fail\n");
>
>                          pMgmt->sNodeDBTable[ii].wEnQueueCnt--;
>                          // check if sta ps enable, wait next pspoll
> @@ -739,7 +739,7 @@ void vRunCommand(struct work_struct *work)
>                          // clear tx map
>                          pMgmt->abyPSTxMap[pMgmt->sNodeDBTable[ii].wAID >>
> 3] &=
>                                      ~byMask[pMgmt->sNodeDBTable[ii].wAID
> & 7];
> -                        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Index=%d PS
> queue clear \n", ii);
> +                        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Index=%d PS
> queue clear\n", ii);
>                      }
>                      pMgmt->sNodeDBTable[ii].bRxPSPoll = false;
>                  }
> --
> 1.7.9.5
>

Reviewed-by: Andy Grover <agrover@redhat.com>
diff mbox

Patch

diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656/wcmd.c
index 55f0dbd..68485b6 100644
--- a/drivers/staging/vt6656/wcmd.c
+++ b/drivers/staging/vt6656/wcmd.c
@@ -182,7 +182,7 @@  static void s_vProbeChannel(struct vnt_private *pDevice)
 		pbyRate = &abyCurrSuppRatesB[0];
 	else
 		pbyRate = &abyCurrSuppRatesG[0];
-    
+
     // build an assocreq frame and send it
     pTxPacket = s_MgrMakeProbeRequest
                 (
@@ -197,9 +197,9 @@  static void s_vProbeChannel(struct vnt_private *pDevice)
     if (pTxPacket != NULL) {
         for (ii = 0; ii < 1; ii++) {
             if (csMgmt_xmit(pDevice, pTxPacket) != CMD_STATUS_PENDING) {
-                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Probe request sending fail.. \n");
+                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Probe request sending fail..\n");
 	    } else {
-                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Probe request is sending.. \n");
+                DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Probe request is sending..\n");
 	    }	
         }
     }
@@ -319,7 +319,7 @@  void vRunCommand(struct work_struct *work)
 
             } else {
                 if (!ChannelValid(pDevice->byZoneType, pMgmt->uScanChannel)) {
-                    DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Invalid channel pMgmt->uScanChannel = %d \n", pMgmt->uScanChannel);
+                    DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Invalid channel pMgmt->uScanChannel = %d\n", pMgmt->uScanChannel);
 			pMgmt->uScanChannel++;
                     s_bCommandComplete(pDevice);
                     spin_unlock_irq(&pDevice->lock);
@@ -704,7 +704,7 @@  void vRunCommand(struct work_struct *work)
                     }
 
                     if (nsDMA_tx_packet(pDevice, TYPE_AC0DMA, skb) != 0)
-                        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Multicast ps tx fail \n");
+                        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Multicast ps tx fail\n");
 
                     pMgmt->sNodeDBTable[0].wEnQueueCnt--;
                 }
@@ -727,7 +727,7 @@  void vRunCommand(struct work_struct *work)
                         }
 
                         if (nsDMA_tx_packet(pDevice, TYPE_AC0DMA, skb) != 0)
-                            DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "sta ps tx fail \n");
+                            DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "sta ps tx fail\n");
 
                         pMgmt->sNodeDBTable[ii].wEnQueueCnt--;
                         // check if sta ps enable, wait next pspoll
@@ -739,7 +739,7 @@  void vRunCommand(struct work_struct *work)
                         // clear tx map
                         pMgmt->abyPSTxMap[pMgmt->sNodeDBTable[ii].wAID >> 3] &=
                                     ~byMask[pMgmt->sNodeDBTable[ii].wAID & 7];
-                        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Index=%d PS queue clear \n", ii);
+                        DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Index=%d PS queue clear\n", ii);
                     }
                     pMgmt->sNodeDBTable[ii].bRxPSPoll = false;
                 }