From: David Brownell Date: Fri, 28 Mar 2008 21:50:26 +0000 (-0700) Subject: drivers/net/usb/pegasus.c: remove in_atomic() check X-Git-Tag: v3.12-rc1~22171^2~19^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1424fd904c5424922f7403a21ad6419ae7e7c76e;p=kernel%2Fkernel-generic.git 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 Cc: Greg KH Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c index d1ed68a..b588c89 100644 --- a/drivers/net/usb/pegasus.c +++ b/drivers/net/usb/pegasus.c @@ -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; }