staging: vt6656: struct vnt_private rename apRCB to rcb
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 18 Jul 2014 05:36:15 +0000 (06:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 23:06:23 +0000 (16:06 -0700)
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/device.h
drivers/staging/vt6656/main_usb.c

index 22554af3ae3622976cb581b3648f808980f6d79b..a5a6c3949ea43ebdde4f6c8766030c31edec567f 100644 (file)
@@ -288,7 +288,7 @@ struct vnt_private {
        u32 int_interval;
 
        /* Variables to track resources for the BULK In Pipe */
-       struct vnt_rcb *apRCB[CB_MAX_RX_DESC];
+       struct vnt_rcb *rcb[CB_MAX_RX_DESC];
        u32 cbRD;
 
        /* Variables to track resources for the BULK Out Pipe */
index fe2f0bcd4c068f939eb01bb08d14ea48ebfda3de..5c8ff9871535752d604b9da4dcd2717ee08041c0 100644 (file)
@@ -418,7 +418,7 @@ static void device_free_rx_bufs(struct vnt_private *priv)
        int ii;
 
        for (ii = 0; ii < priv->cbRD; ii++) {
-               rcb = priv->apRCB[ii];
+               rcb = priv->rcb[ii];
                if (!rcb)
                        continue;
 
@@ -486,14 +486,14 @@ static bool device_alloc_bufs(struct vnt_private *priv)
        }
 
        for (ii = 0; ii < priv->cbRD; ii++) {
-               priv->apRCB[ii] = kzalloc(sizeof(struct vnt_rcb), GFP_KERNEL);
-               if (!priv->apRCB[ii]) {
+               priv->rcb[ii] = kzalloc(sizeof(struct vnt_rcb), GFP_KERNEL);
+               if (!priv->rcb[ii]) {
                        dev_err(&priv->usb->dev,
                                        "failed to allocate rcb no %d\n", ii);
                        goto free_rx_tx;
                }
 
-               rcb = priv->apRCB[ii];
+               rcb = priv->rcb[ii];
 
                rcb->priv = priv;