Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341645
b: refs/heads/master
c: 4480c00
h: refs/heads/master
i:
  341643: c8b55c9
v: v3
  • Loading branch information
Marc Kleine-Budde committed Nov 29, 2012
1 parent 73e79a5 commit 5a3167b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 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: b2d0bf711f94969394a9c4a2f8923c286803cd34
refs/heads/master: 4480c008047d72a7d40e1e7fdc1d3b420ebcb955
7 changes: 0 additions & 7 deletions trunk/drivers/net/can/usb/ems_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,6 @@ struct ems_tx_urb_context {

struct ems_usb {
struct can_priv can; /* must be the first member */
int open_time;

struct sk_buff *echo_skb[MAX_TX_URBS];

Expand Down Expand Up @@ -728,7 +727,6 @@ static int ems_usb_open(struct net_device *netdev)
return err;
}

dev->open_time = jiffies;

netif_start_queue(netdev);

Expand Down Expand Up @@ -878,8 +876,6 @@ static int ems_usb_close(struct net_device *netdev)

close_candev(netdev);

dev->open_time = 0;

return 0;
}

Expand All @@ -905,9 +901,6 @@ static int ems_usb_set_mode(struct net_device *netdev, enum can_mode mode)
{
struct ems_usb *dev = netdev_priv(netdev);

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

switch (mode) {
case CAN_MODE_START:
if (ems_usb_write_mode(dev, SJA1000_MOD_NORMAL))
Expand Down

0 comments on commit 5a3167b

Please sign in to comment.