diff options
author | Oliver Neukum <oliver@neukum.org> | 2012-09-04 04:21:54 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-04 12:49:05 -0400 |
commit | 6e129d04de7adbd63e86293533688ce88b9b13d8 (patch) | |
tree | 4e4bd9aed28f513567a2e8ba6d24cf2396b62e00 | |
parent | 1e9f0207d3e63fab7a0f8a0e532bdc73ea850baf (diff) | |
download | linux-6e129d04de7adbd63e86293533688ce88b9b13d8.tar.gz linux-6e129d04de7adbd63e86293533688ce88b9b13d8.tar.bz2 linux-6e129d04de7adbd63e86293533688ce88b9b13d8.zip |
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>
-rw-r--r-- | drivers/net/usb/usbnet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 8531c1caac28..5234d20ef44d 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 |