Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341647
b: refs/heads/master
c: 823d7a1
h: refs/heads/master
i:
  341645: 5a3167b
  341643: c8b55c9
  341639: 133cdf2
  341631: 09ad6d3
v: v3
  • Loading branch information
Marc Kleine-Budde committed Nov 29, 2012
1 parent 46c6f06 commit 57206b9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 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: e42870465025ac6c9f3dc45f45a69d3da2d85308
refs/heads/master: 823d7a1f761d6404babaab04cc8b1724186cf2c8
5 changes: 0 additions & 5 deletions trunk/drivers/net/can/usb/peak_usb/pcan_usb_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ static int peak_usb_ndo_open(struct net_device *netdev)
return err;
}

dev->open_time = jiffies;
netif_start_queue(netdev);

return 0;
Expand Down Expand Up @@ -576,7 +575,6 @@ static int peak_usb_ndo_stop(struct net_device *netdev)

close_candev(netdev);

dev->open_time = 0;
dev->can.state = CAN_STATE_STOPPED;

/* can set bus off now */
Expand Down Expand Up @@ -661,9 +659,6 @@ static int peak_usb_set_mode(struct net_device *netdev, enum can_mode mode)
struct peak_usb_device *dev = netdev_priv(netdev);
int err = 0;

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

switch (mode) {
case CAN_MODE_START:
err = peak_usb_restart(dev);
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/can/usb/peak_usb/pcan_usb_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ struct peak_usb_device {
struct can_priv can;
struct peak_usb_adapter *adapter;
unsigned int ctrl_idx;
int open_time;
u32 state;

struct sk_buff *echo_skb[PCAN_USB_MAX_TX_URBS];
Expand Down

0 comments on commit 57206b9

Please sign in to comment.