Skip to content

Commit

Permalink
drivers/net/usb/pegasus.c: remove in_atomic() check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Brownell authored and Jeff Garzik committed Mar 29, 2008
1 parent 47df976 commit 1424fd9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/net/usb/pegasus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1424fd9

Please sign in to comment.