diff options
author | Jeff Garzik <jeff@garzik.org> | 2008-06-27 08:20:20 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-06-28 16:23:38 +0200 |
commit | be0976be9148f31ee0d1997354c3e30ff8d07587 (patch) | |
tree | 18792bffd7130b7c3894c64992f60e388e111141 /drivers/net/typhoon.c | |
parent | [netdrvr] fealnx: clean up nasty mess of arch ifdefs (diff) | |
download | linux-be0976be9148f31ee0d1997354c3e30ff8d07587.tar.xz linux-be0976be9148f31ee0d1997354c3e30ff8d07587.zip |
[netdrvr] kill sync_irq-before-freq_irq pattern
synchronize_irq() is superfluous when free_irq() call immediately follows it,
because free_irq() also does a synchronize_irq() call of its own.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/typhoon.c')
-rw-r--r-- | drivers/net/typhoon.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/typhoon.c b/drivers/net/typhoon.c index c0dd25ba7a18..8549f1159a30 100644 --- a/drivers/net/typhoon.c +++ b/drivers/net/typhoon.c @@ -334,8 +334,6 @@ enum state_values { #define TYPHOON_RESET_TIMEOUT_NOSLEEP ((6 * 1000000) / TYPHOON_UDELAY) #define TYPHOON_WAIT_TIMEOUT ((1000000 / 2) / TYPHOON_UDELAY) -#define typhoon_synchronize_irq(x) synchronize_irq(x) - #if defined(NETIF_F_TSO) #define skb_tso_size(x) (skb_shinfo(x)->gso_size) #define TSO_NUM_DESCRIPTORS 2 @@ -2143,7 +2141,6 @@ typhoon_close(struct net_device *dev) printk(KERN_ERR "%s: unable to stop runtime\n", dev->name); /* Make sure there is no irq handler running on a different CPU. */ - typhoon_synchronize_irq(dev->irq); free_irq(dev->irq, dev); typhoon_free_rx_rings(tp); |