netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usbnet: drop unneeded check for NULL
@ 2012-09-04 14:21 Oliver Neukum
  2012-09-04 15:53 ` Richard Cochran
  0 siblings, 1 reply; 11+ messages in thread
From: Oliver Neukum @ 2012-09-04 14:21 UTC (permalink / raw)
  To: davem, netdev; +Cc: Oliver Neukum, Oliver Neukum

usbnet_start_xmit() is always called with a valid skb

Signed-off-by: Oliver Neukum <oneukum@suse.de>
---
 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 8531c1c..5234d20 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
-- 
1.7.7

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-09-06  7:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-04 14:21 [PATCH] usbnet: drop unneeded check for NULL Oliver Neukum
2012-09-04 15:53 ` Richard Cochran
2012-09-04 16:13   ` Oliver Neukum
2012-09-04 16:37     ` David Miller
2012-09-05  4:47       ` Richard Cochran
2012-09-05  6:24         ` Oliver Neukum
2012-09-05 16:50           ` David Miller
2012-09-05 22:14             ` Ben Hutchings
2012-09-05 22:34               ` Oliver Neukum
2012-09-05 22:53                 ` Ben Hutchings
2012-09-06  7:52               ` Richard Cochran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).