Commit d741410f6d3ba2bb6d558eccb23a58af2458b68a

Con Kolivas 2013-06-23T10:13:18

sc_count shouldn't be +1 in bflsc.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-bflsc.c b/driver-bflsc.c
index d43a08a..eccbdba 100644
--- a/driver-bflsc.c
+++ b/driver-bflsc.c
@@ -836,7 +836,7 @@ static bool getinfo(struct cgpu_info *bflsc, int dev)
 		else if (strcmp(firstname, BFLSC_DI_XLINKPRESENT) == 0)
 			sc_dev.xlink_present = strdup(fields[0]);
 		else if (strcmp(firstname, BFLSC_DI_DEVICESINCHAIN) == 0) {
-			sc_info->sc_count = atoi(fields[0]) + 1;
+			sc_info->sc_count = atoi(fields[0]);
 			if (sc_info->sc_count < 1 || sc_info->sc_count > 30) {
 				tmp = str_text(items[i]);
 				applog(LOG_WARNING, "%s detect (%s) invalid s-link count: '%s'",