usb_modeswitch/0001-usb_modeswitch-count-the-target-devices-from-zero.patch

27 lines
847 B
Diff
Raw Normal View History

2018-02-28 21:19:47 +00:00
From 99cade3624c432a478e624f278692cdedf4e0450 Mon Sep 17 00:00:00 2001
2017-08-18 09:05:10 +00:00
From: Lubomir Rintel <lkundrak@v3.sk>
Date: Fri, 18 Aug 2017 10:40:41 +0200
2018-02-28 21:19:47 +00:00
Subject: [PATCH] usb_modeswitch: count the target devices from zero
2017-08-18 09:05:10 +00:00
Most likely a typo here.
---
usb_modeswitch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usb_modeswitch.c b/usb_modeswitch.c
2018-02-28 21:19:47 +00:00
index 3239946..1b3bf9d 100644
2017-08-18 09:05:10 +00:00
--- a/usb_modeswitch.c
+++ b/usb_modeswitch.c
2018-02-28 21:19:47 +00:00
@@ -1582,7 +1582,7 @@ int checkSuccess()
2017-08-18 09:05:10 +00:00
* description is read for syslog message
*/
2018-02-28 21:19:47 +00:00
// Wait counter passed on from previous loop
2017-08-18 09:05:10 +00:00
- for (i=i; i < CheckSuccess; i++) {
+ for (i=0; i < CheckSuccess; i++) {
SHOW_PROGRESS(output," Search for target devices ...\n");
dev = search_devices(&newTargetCount, TargetVendor, TargetProductList,
TargetClass, 0, SEARCH_TARGET);
--
2018-02-28 21:19:47 +00:00
2.14.3
2017-08-18 09:05:10 +00:00