Browse Source

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

Con Kolivas 13 years ago
parent
commit
8b2b9b3d3e
1 changed files with 0 additions and 1 deletions
  1. 0 1
      driver-avalon.c

+ 0 - 1
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:");