]> git.baikalelectronics.ru Git - kernel.git/commit
net: cdc_ncm: do not start timer on an empty skb
authorBjørn Mork <bjorn@mork.no>
Fri, 16 May 2014 19:48:29 +0000 (21:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 May 2014 02:39:02 +0000 (22:39 -0400)
commita8757cc94a9a02a429fb0b7ebfe949c038b11cb2
tree72cc86f2980b6865b69473b5980a41e9eb553c9a
parent5a2d1a24df5526440255bc7076c457d8a72895af
net: cdc_ncm: do not start timer on an empty skb

We can end up with a freshly allocated tx_curr_skb with no frames
in it.  In this case it does not make any sense to start the timer.
This avoids the timer periodically trying to start tx when there
is nothing in the queue.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c