Commit ab18a9c9 authored by Oliver Neukum's avatar Oliver Neukum Committed by David S. Miller

usbnet: silence an unnecessary warning

That a kevent could not be scheduled is not an error.
Such handlers must be able to deal with multiple events anyway.
As the successful scheduling of a work is a debug event, make
the failure debug priority, too.

V2: coding style
Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
Reported-by: default avatarCristian Caravena <caravena@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent affee5e1
...@@ -457,12 +457,10 @@ static enum skb_state defer_bh(struct usbnet *dev, struct sk_buff *skb, ...@@ -457,12 +457,10 @@ static enum skb_state defer_bh(struct usbnet *dev, struct sk_buff *skb,
void usbnet_defer_kevent (struct usbnet *dev, int work) void usbnet_defer_kevent (struct usbnet *dev, int work)
{ {
set_bit (work, &dev->flags); set_bit (work, &dev->flags);
if (!schedule_work (&dev->kevent)) { if (!schedule_work (&dev->kevent))
if (net_ratelimit()) netdev_dbg(dev->net, "kevent %d may have been dropped\n", work);
netdev_err(dev->net, "kevent %d may have been dropped\n", work); else
} else {
netdev_dbg(dev->net, "kevent %d scheduled\n", work); netdev_dbg(dev->net, "kevent %d scheduled\n", work);
}
} }
EXPORT_SYMBOL_GPL(usbnet_defer_kevent); EXPORT_SYMBOL_GPL(usbnet_defer_kevent);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment