Blame SOURCES/0002-usb_modeswitch-count-the-target-devices-from-zero.patch

9ed33a
From 9d05fe0e0f6b049520d97a47d042d5cfad35b5d6 Mon Sep 17 00:00:00 2001
9ed33a
From: Lubomir Rintel <lkundrak@v3.sk>
9ed33a
Date: Fri, 18 Aug 2017 10:40:41 +0200
9ed33a
Subject: [PATCH 2/2] usb_modeswitch: count the target devices from zero
9ed33a
9ed33a
Most likely a typo here.
9ed33a
---
9ed33a
 usb_modeswitch.c | 2 +-
9ed33a
 1 file changed, 1 insertion(+), 1 deletion(-)
9ed33a
9ed33a
diff --git a/usb_modeswitch.c b/usb_modeswitch.c
9ed33a
index 6948a84..4a1fb5c 100644
9ed33a
--- a/usb_modeswitch.c
9ed33a
+++ b/usb_modeswitch.c
9ed33a
@@ -1579,7 +1579,7 @@ int checkSuccess()
9ed33a
 		 * Target device on the same bus with higher device number is returned,
9ed33a
 		 * description is read for syslog message
9ed33a
 		 */
9ed33a
-		for (i=i; i < CheckSuccess; i++) {
9ed33a
+		for (i=0; i < CheckSuccess; i++) {
9ed33a
 			SHOW_PROGRESS(output," Search for target devices ...\n");
9ed33a
 			dev = search_devices(&newTargetCount, TargetVendor, TargetProductList,
9ed33a
 					TargetClass, 0, SEARCH_TARGET);
9ed33a
-- 
9ed33a
2.13.0
9ed33a