Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14363
b: refs/heads/master
c: d23b536
h: refs/heads/master
i:
  14361: 09c945d
  14359: d2a0abc
v: v3
  • Loading branch information
Herbert Xu authored and Linus Torvalds committed Nov 17, 2005
1 parent f8b40f6 commit ba92ed6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 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: 8845add380854ffce5268714a093df8c80b4a6e2
refs/heads/master: d23b536bb715673ca0ccbdaac2b6ce2c001d06e9
13 changes: 1 addition & 12 deletions trunk/drivers/usb/net/kaweth.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ struct kaweth_device

__u32 status;
int end;
int removed;
int suspend_lowmem_rx;
int suspend_lowmem_ctrl;
int linkstate;
Expand Down Expand Up @@ -699,6 +698,7 @@ static int kaweth_close(struct net_device *net)

usb_kill_urb(kaweth->irq_urb);
usb_kill_urb(kaweth->rx_urb);
usb_kill_urb(kaweth->tx_urb);

flush_scheduled_work();

Expand Down Expand Up @@ -750,13 +750,6 @@ static int kaweth_start_xmit(struct sk_buff *skb, struct net_device *net)

spin_lock(&kaweth->device_lock);

if (kaweth->removed) {
/* our device is undergoing disconnection - we bail out */
spin_unlock(&kaweth->device_lock);
dev_kfree_skb_irq(skb);
return 0;
}

kaweth_async_set_rx_mode(kaweth);
netif_stop_queue(net);

Expand Down Expand Up @@ -1136,10 +1129,6 @@ static void kaweth_disconnect(struct usb_interface *intf)
return;
}
netdev = kaweth->net;
kaweth->removed = 1;
usb_kill_urb(kaweth->irq_urb);
usb_kill_urb(kaweth->rx_urb);
usb_kill_urb(kaweth->tx_urb);

kaweth_dbg("Unregistering net device");
unregister_netdev(netdev);
Expand Down

0 comments on commit ba92ed6

Please sign in to comment.