Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341646
b: refs/heads/master
c: e428704
h: refs/heads/master
v: v3
  • Loading branch information
Marc Kleine-Budde committed Nov 29, 2012
1 parent 5a3167b commit 46c6f06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 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: 4480c008047d72a7d40e1e7fdc1d3b420ebcb955
refs/heads/master: e42870465025ac6c9f3dc45f45a69d3da2d85308
10 changes: 0 additions & 10 deletions trunk/drivers/net/can/usb/esd_usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ struct esd_usb2_net_priv {
struct usb_anchor tx_submitted;
struct esd_tx_urb_context tx_contexts[MAX_TX_URBS];

int open_time;
struct esd_usb2 *usb2;
struct net_device *netdev;
int index;
Expand Down Expand Up @@ -695,8 +694,6 @@ static int esd_usb2_open(struct net_device *netdev)
return err;
}

priv->open_time = jiffies;

netif_start_queue(netdev);

return 0;
Expand Down Expand Up @@ -864,8 +861,6 @@ static int esd_usb2_close(struct net_device *netdev)

close_candev(netdev);

priv->open_time = 0;

return 0;
}

Expand Down Expand Up @@ -941,11 +936,6 @@ static int esd_usb2_get_berr_counter(const struct net_device *netdev,

static int esd_usb2_set_mode(struct net_device *netdev, enum can_mode mode)
{
struct esd_usb2_net_priv *priv = netdev_priv(netdev);

if (!priv->open_time)
return -EINVAL;

switch (mode) {
case CAN_MODE_START:
netif_wake_queue(netdev);
Expand Down

0 comments on commit 46c6f06

Please sign in to comment.