diff options
Diffstat (limited to 'drivers/media/dvb/dvb-usb/it913x.c')
-rw-r--r-- | drivers/media/dvb/dvb-usb/it913x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-usb/it913x.c b/drivers/media/dvb/dvb-usb/it913x.c index 482d249ca7f3..6244fe9d1a3a 100644 --- a/drivers/media/dvb/dvb-usb/it913x.c +++ b/drivers/media/dvb/dvb-usb/it913x.c | |||
@@ -81,7 +81,7 @@ static int it913x_bulk_write(struct usb_device *dev, | |||
81 | for (i = 0; i < IT913X_RETRY; i++) { | 81 | for (i = 0; i < IT913X_RETRY; i++) { |
82 | ret = usb_bulk_msg(dev, usb_sndbulkpipe(dev, pipe), | 82 | ret = usb_bulk_msg(dev, usb_sndbulkpipe(dev, pipe), |
83 | snd, len , &actual_l, IT913X_SND_TIMEOUT); | 83 | snd, len , &actual_l, IT913X_SND_TIMEOUT); |
84 | if (ret == 0 || ret != -EBUSY || ret != -ETIMEDOUT) | 84 | if (ret != -EBUSY && ret != -ETIMEDOUT) |
85 | break; | 85 | break; |
86 | } | 86 | } |
87 | 87 | ||
@@ -99,7 +99,7 @@ static int it913x_bulk_read(struct usb_device *dev, | |||
99 | for (i = 0; i < IT913X_RETRY; i++) { | 99 | for (i = 0; i < IT913X_RETRY; i++) { |
100 | ret = usb_bulk_msg(dev, usb_rcvbulkpipe(dev, pipe), | 100 | ret = usb_bulk_msg(dev, usb_rcvbulkpipe(dev, pipe), |
101 | rev, len , &actual_l, IT913X_RCV_TIMEOUT); | 101 | rev, len , &actual_l, IT913X_RCV_TIMEOUT); |
102 | if (ret == 0 || ret != -EBUSY || ret != -ETIMEDOUT) | 102 | if (ret != -EBUSY && ret != -ETIMEDOUT) |
103 | break; | 103 | break; |
104 | } | 104 | } |
105 | 105 | ||