From 8b2b9b3d3ed127833b7670e50ffa81ab6f167faf Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 7 Apr 2013 02:06:21 +1000 Subject: [PATCH] Remove inappropriate memset of struct avalon result which was corrupting fan values. --- driver-avalon.c | 1 - 1 file changed, 1 deletion(-) diff --git a/driver-avalon.c b/driver-avalon.c index 8e2953b9..4de52d5d 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:");