diff options
Diffstat (limited to 'drivers/net/can')
-rw-r--r-- | drivers/net/can/usb/esd_usb2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/can/usb/esd_usb2.c b/drivers/net/can/usb/esd_usb2.c index 05a52754f486..dc53c831ea95 100644 --- a/drivers/net/can/usb/esd_usb2.c +++ b/drivers/net/can/usb/esd_usb2.c | |||
@@ -659,7 +659,7 @@ failed: | |||
659 | static void unlink_all_urbs(struct esd_usb2 *dev) | 659 | static void unlink_all_urbs(struct esd_usb2 *dev) |
660 | { | 660 | { |
661 | struct esd_usb2_net_priv *priv; | 661 | struct esd_usb2_net_priv *priv; |
662 | int i; | 662 | int i, j; |
663 | 663 | ||
664 | usb_kill_anchored_urbs(&dev->rx_submitted); | 664 | usb_kill_anchored_urbs(&dev->rx_submitted); |
665 | for (i = 0; i < dev->net_count; i++) { | 665 | for (i = 0; i < dev->net_count; i++) { |
@@ -668,8 +668,8 @@ static void unlink_all_urbs(struct esd_usb2 *dev) | |||
668 | usb_kill_anchored_urbs(&priv->tx_submitted); | 668 | usb_kill_anchored_urbs(&priv->tx_submitted); |
669 | atomic_set(&priv->active_tx_jobs, 0); | 669 | atomic_set(&priv->active_tx_jobs, 0); |
670 | 670 | ||
671 | for (i = 0; i < MAX_TX_URBS; i++) | 671 | for (j = 0; j < MAX_TX_URBS; j++) |
672 | priv->tx_contexts[i].echo_index = MAX_TX_URBS; | 672 | priv->tx_contexts[j].echo_index = MAX_TX_URBS; |
673 | } | 673 | } |
674 | } | 674 | } |
675 | } | 675 | } |