Commit 456e3dd0b541198c759e93a05048bd9c0a43a39c

Con Kolivas 2014-02-23T13:52:02

We shouldn't be trying to read from the hfa_send_shutdown function itself.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 25f26ae..f334f25 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -486,8 +486,6 @@ static bool hfa_send_shutdown(struct cgpu_info *hashfast)
 	 * discard any work it thinks is in flight for a cleaner restart. */
 	if (!hfa_send_frame(hashfast, HF_USB_CMD(OP_WORK_RESTART), 0, (uint8_t *)NULL, 0))
 		return ret;
-	if (!hfa_clear_readbuf(hashfast))
-		return ret;
 	if (hfa_send_frame(hashfast, HF_USB_CMD(OP_USB_SHUTDOWN), 0, NULL, 0)) {
 		/* Wait to allow device to properly shut down. */
 		cgsleep_ms(1000);