From 9dc2f3f175721e4e126abc061a0069980fc5c21c Mon Sep 17 00:00:00 2001 From: ckolivas Date: Tue, 25 Jun 2013 11:21:28 +1000 Subject: [PATCH] Redo +1 fix in bflsc. --- driver-bflsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver-bflsc.c b/driver-bflsc.c index d3e9d134..21b8215b 100644 --- a/driver-bflsc.c +++ b/driver-bflsc.c @@ -984,7 +984,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'",