Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341644
b: refs/heads/master
c: b2d0bf7
h: refs/heads/master
v: v3
  • Loading branch information
Marc Kleine-Budde committed Nov 29, 2012
1 parent c8b55c9 commit 73e79a5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 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: 49ed59b72cb03116682dd6ab5c04117cc710bff3
refs/heads/master: b2d0bf711f94969394a9c4a2f8923c286803cd34
8 changes: 0 additions & 8 deletions trunk/drivers/net/can/sja1000/sja1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,6 @@ static void sja1000_start(struct net_device *dev)

static int sja1000_set_mode(struct net_device *dev, enum can_mode mode)
{
struct sja1000_priv *priv = netdev_priv(dev);

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

switch (mode) {
case CAN_MODE_START:
sja1000_start(dev);
Expand Down Expand Up @@ -579,7 +574,6 @@ static int sja1000_open(struct net_device *dev)

/* init and start chi */
sja1000_start(dev);
priv->open_time = jiffies;

netif_start_queue(dev);

Expand All @@ -598,8 +592,6 @@ static int sja1000_close(struct net_device *dev)

close_candev(dev);

priv->open_time = 0;

return 0;
}

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/can/sja1000/sja1000.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@
*/
struct sja1000_priv {
struct can_priv can; /* must be the first member */
int open_time;
struct sk_buff *echo_skb;

/* the lower-layer is responsible for appropriate locking */
Expand Down

0 comments on commit 73e79a5

Please sign in to comment.