Commit 8577011c authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: struct vnt_private rename apRCB to rcb

Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 3d582487
......@@ -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 */
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment