aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2012-09-04 04:21:54 +0000
committerDavid S. Miller <davem@davemloft.net>2012-09-04 12:49:05 -0400
commit6e129d04de7adbd63e86293533688ce88b9b13d8 (patch)
tree4e4bd9aed28f513567a2e8ba6d24cf2396b62e00 /drivers
parent1e9f0207d3e63fab7a0f8a0e532bdc73ea850baf (diff)
usbnet: drop unneeded check for NULL
usbnet_start_xmit() is always called with a valid skb Signed-off-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/usb/usbnet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 8531c1caac2..5234d20ef44 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -1092,8 +1092,7 @@ netdev_tx_t usbnet_start_xmit (struct sk_buff *skb,
unsigned long flags;
int retval;
- if (skb)
- skb_tx_timestamp(skb);
+ skb_tx_timestamp(skb);
// some devices want funky USB-level framing, for
// win32 driver (usually) and/or hardware quirks