usbnet: drop unneeded check for NULL
authorOliver Neukum <oliver@neukum.org>
Tue, 4 Sep 2012 04:21:54 +0000 (04:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2012 16:49:05 +0000 (12:49 -0400)
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>
drivers/net/usb/usbnet.c

index 8531c1caac283263febc4f674daedef5b7844ff1..5234d20ef44dac06ea87803fb66dbe3e6f927b35 100644 (file)
@@ -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