]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vt6656: clean up device_free_rx_bufs.
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 28 Feb 2014 23:58:35 +0000 (23:58 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Mar 2014 00:48:36 +0000 (16:48 -0800)
cleanup white space and camel case.

Camel case changes
pDevice -> priv
pRCB -> rcb

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/main_usb.c

index e991618c227b184bdbd116bf970079d84cd468b1..58fb3770652f451823a48fdd6d0e2fd14f2cd513 100644 (file)
@@ -767,26 +767,28 @@ static void device_free_tx_bufs(struct vnt_private *pDevice)
     return;
 }
 
-static void device_free_rx_bufs(struct vnt_private *pDevice)
+static void device_free_rx_bufs(struct vnt_private *priv)
 {
-       struct vnt_rcb *pRCB;
+       struct vnt_rcb *rcb;
        int ii;
 
-    for (ii = 0; ii < pDevice->cbRD; ii++) {
+       for (ii = 0; ii < priv->cbRD; ii++) {
+               rcb = priv->apRCB[ii];
 
-        pRCB = pDevice->apRCB[ii];
-       /* deallocate URBs */
-        if (pRCB->pUrb) {
-            usb_kill_urb(pRCB->pUrb);
-            usb_free_urb(pRCB->pUrb);
-        }
-       /* deallocate skb */
-        if (pRCB->skb)
-            dev_kfree_skb(pRCB->skb);
-    }
-    kfree(pDevice->pRCBMem);
+               /* deallocate URBs */
+               if (rcb->pUrb) {
+                       usb_kill_urb(rcb->pUrb);
+                       usb_free_urb(rcb->pUrb);
+               }
 
-    return;
+               /* deallocate skb */
+               if (rcb->skb)
+                       dev_kfree_skb(rcb->skb);
+       }
+
+       kfree(priv->pRCBMem);
+
+       return;
 }
 
 static void usb_device_reset(struct vnt_private *pDevice)