mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 08:48:48 +00:00
drivers/net/usb/pegasus.c: remove in_atomic() check
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>
This commit is contained in:
parent
47df976c4e
commit
1424fd904c
@ -1128,12 +1128,8 @@ pegasus_get_settings(struct net_device *dev, struct ethtool_cmd *ecmd)
|
|||||||
{
|
{
|
||||||
pegasus_t *pegasus;
|
pegasus_t *pegasus;
|
||||||
|
|
||||||
if (in_atomic())
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
pegasus = netdev_priv(dev);
|
pegasus = netdev_priv(dev);
|
||||||
mii_ethtool_gset(&pegasus->mii, ecmd);
|
mii_ethtool_gset(&pegasus->mii, ecmd);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user