Commit 8b2b9b3d3ed127833b7670e50ffa81ab6f167faf

Con Kolivas 2013-04-07T02:06:21

Remove inappropriate memset of struct avalon result which was corrupting fan values.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-avalon.c b/driver-avalon.c
index 8e2953b..4de52d5 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -272,7 +272,6 @@ static int avalon_get_result(int fd, struct avalon_result *ar,
 	memset(result, 0, AVALON_READ_SIZE);
 	ret = avalon_gets(fd, result, read_count, thr, tv_finish);
 
-	memset(ar, 0, sizeof(struct avalon_result));
 	if (ret == AVA_GETS_OK) {
 		if (opt_debug) {
 			applog(LOG_DEBUG, "Avalon: get:");