Browse Source

The bitforce buffer is cleared and hw error count incremented on return from a failed send_work already so no need to do it within the send_work function.

Con Kolivas 13 years ago
parent
commit
07fca3e289
1 changed files with 0 additions and 4 deletions
  1. 0 4
      driver-bitforce.c

+ 0 - 4
driver-bitforce.c

@@ -421,8 +421,6 @@ re_send:
 			goto re_send;
 		}
 		applog(LOG_ERR, "BFL%i: Error: Send work reports: %s", bitforce->device_id, pdevbuf);
-		bitforce->hw_errors++;
-		bitforce_clear_buffer(bitforce);
 		return false;
 	}
 
@@ -463,8 +461,6 @@ re_send:
 
 	if (unlikely(strncasecmp(pdevbuf, "OK", 2))) {
 		applog(LOG_ERR, "BFL%i: Error: Send block data reports: %s", bitforce->device_id, pdevbuf);
-		bitforce->hw_errors++;
-		bitforce_clear_buffer(bitforce);
 		return false;
 	}