Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Borca committed Oct 9, 2010
1 parent 3182858 commit b55193c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ipheth-driver/ipheth.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,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 @@ -232,16 +232,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 Expand Up @@ -556,7 +557,6 @@ static struct usb_driver ipheth_driver = {
.probe = ipheth_probe,
.disconnect = ipheth_disconnect,
.id_table = ipheth_table,
.supports_autosuspend = 0,
};

static int __init ipheth_init(void)
Expand Down

0 comments on commit b55193c

Please sign in to comment.