Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203369
b: refs/heads/master
c: c31fd6c
h: refs/heads/master
i:
  203367: 261f9dc
v: v3
  • Loading branch information
Oliver Neukum authored and David S. Miller committed Jul 6, 2010
1 parent d67cb69 commit 3645eaa
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 396e799c3ac29f970c40bde87b76f4652c06df76
refs/heads/master: c31fd6c25c4619c0745b12cff842721a4bd4202c
8 changes: 5 additions & 3 deletions trunk/drivers/net/usb/cdc-phonet.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ static void tx_complete(struct urb *req)
struct sk_buff *skb = req->context;
struct net_device *dev = skb->dev;
struct usbpn_dev *pnd = netdev_priv(dev);
int status = req->status;

switch (req->status) {
switch (status) {
case 0:
dev->stats.tx_bytes += skb->len;
break;
Expand All @@ -109,7 +110,7 @@ static void tx_complete(struct urb *req)
dev->stats.tx_aborted_errors++;
default:
dev->stats.tx_errors++;
dev_dbg(&dev->dev, "TX error (%d)\n", req->status);
dev_dbg(&dev->dev, "TX error (%d)\n", status);
}
dev->stats.tx_packets++;

Expand Down Expand Up @@ -150,8 +151,9 @@ static void rx_complete(struct urb *req)
struct page *page = virt_to_page(req->transfer_buffer);
struct sk_buff *skb;
unsigned long flags;
int status = req->status;

switch (req->status) {
switch (status) {
case 0:
spin_lock_irqsave(&pnd->rx_lock, flags);
skb = pnd->rx_skb;
Expand Down
13 changes: 7 additions & 6 deletions trunk/drivers/net/usb/ipheth.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ static void ipheth_rcvbulk_callback(struct urb *urb)
case 0:
break;
default:
err("%s: urb status: %d", __func__, urb->status);
err("%s: urb status: %d", __func__, status);
return;
}

Expand Down Expand Up @@ -222,16 +222,17 @@ static void ipheth_rcvbulk_callback(struct urb *urb)
static void ipheth_sndbulk_callback(struct urb *urb)
{
struct ipheth_device *dev;
int status = urb->status;

dev = urb->context;
if (dev == NULL)
return;

if (urb->status != 0 &&
urb->status != -ENOENT &&
urb->status != -ECONNRESET &&
urb->status != -ESHUTDOWN)
err("%s: urb status: %d", __func__, urb->status);
if (status != 0 &&
status != -ENOENT &&
status != -ECONNRESET &&
status != -ESHUTDOWN)
err("%s: urb status: %d", __func__, status);

dev_kfree_skb_irq(dev->tx_skb);
netif_wake_queue(dev->net);
Expand Down

0 comments on commit 3645eaa

Please sign in to comment.