27 lines
878 B
Diff
27 lines
878 B
Diff
From 9d05fe0e0f6b049520d97a47d042d5cfad35b5d6 Mon Sep 17 00:00:00 2001
|
|
From: Lubomir Rintel <lkundrak@v3.sk>
|
|
Date: Fri, 18 Aug 2017 10:40:41 +0200
|
|
Subject: [PATCH 2/2] usb_modeswitch: count the target devices from zero
|
|
|
|
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
|
|
index 6948a84..4a1fb5c 100644
|
|
--- a/usb_modeswitch.c
|
|
+++ b/usb_modeswitch.c
|
|
@@ -1579,7 +1579,7 @@ int checkSuccess()
|
|
* Target device on the same bus with higher device number is returned,
|
|
* description is read for syslog message
|
|
*/
|
|
- 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);
|
|
--
|
|
2.13.0
|
|
|