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)
commit046c65946e3d1bbc70282f43c9cd39b1d430640b
tree72cc86f2980b6865b69473b5980a41e9eb553c9a
parentfa83dbeee55865678025b6c1637ca08860209f87
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