This check makes no sense. It is an inherent race. Signed-off-by: Oliver Neukum <oneu...@suse.com> --- drivers/net/usb/hso.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index 489024f0ae62..f7976a6fa570 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -845,8 +845,7 @@ static void hso_net_tx_timeout(struct net_device *net) dev_warn(&net->dev, "Tx timed out.\n"); /* Tear the waiting frame off the list */ - if (odev->mux_bulk_tx_urb && - (odev->mux_bulk_tx_urb->status == -EINPROGRESS)) + if (odev->mux_bulk_tx_urb) usb_unlink_urb(odev->mux_bulk_tx_urb); /* Update statistics */ -- 2.16.4