Skip to content

Commit

Permalink
axnet_cs: remove unnecessary spin_unlock_irqrestore
Browse files Browse the repository at this point in the history
axnet_cs:
    remove unnecessary spin_unlock_irqrestore,spin_lock_irqsave.

Signed-off-by: Ken Kawasaki <ken_kawasaki@spring.nifty.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ken Kawasaki authored and David S. Miller committed Jan 4, 2010
1 parent ee983ac commit ceba0b2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/pcmcia/axnet_cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,14 +1065,11 @@ static netdev_tx_t axnet_start_xmit(struct sk_buff *skb,

spin_lock_irqsave(&ei_local->page_lock, flags);
outb_p(0x00, e8390_base + EN0_IMR);
spin_unlock_irqrestore(&ei_local->page_lock, flags);

/*
* Slow phase with lock held.
*/

spin_lock_irqsave(&ei_local->page_lock, flags);

ei_local->irqlock = 1;

send_length = max(length, ETH_ZLEN);
Expand Down

0 comments on commit ceba0b2

Please sign in to comment.