]> 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)
commit00553935ca670389a8f2993ea041ddf0a6423fd8
tree72cc86f2980b6865b69473b5980a41e9eb553c9a
parentac253a5e8fce60a4c6e078fcb59caf46ee31ceee
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