]> err.no Git - linux-2.6/commitdiff
drivers/net/usb/pegasus.c: remove in_atomic() check
authorDavid Brownell <david-b@pacbell.net>
Fri, 28 Mar 2008 21:50:26 +0000 (14:50 -0700)
committerJeff Garzik <jeff@garzik.org>
Sat, 29 Mar 2008 01:52:25 +0000 (21:52 -0400)
Remove superfluous in-atomic() check; ethtool MII ops are called from task
context.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Greg KH <greg@kroah.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/usb/pegasus.c

index d1ed68a11e70192ef320c1c15c52c060b952cd4b..b588c890ea70fb56665245fee0b6a32884976284 100644 (file)
@@ -1128,12 +1128,8 @@ pegasus_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)
 {
        pegasus_t *pegasus;
 
-       if (in_atomic())
-               return 0;
-
        pegasus = netdev_priv(dev);
        mii_ethtool_gset(&pegasus->mii, ecmd);
-
        return 0;
 }