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.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
07fca3e289
  1. 4
      driver-bitforce.c

4
driver-bitforce.c

@ -421,8 +421,6 @@ re_send: @@ -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: @@ -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;
}

Loading…
Cancel
Save