Commit 7cf154bfa5822961f1481a49e32f7b29edeca628

Con Kolivas 2013-05-26T14:23:14

Use AVA_GETS_OK macro in avalon_read.

diff --git a/driver-avalon.c b/driver-avalon.c
index 5619557..875b1f9 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -262,7 +262,7 @@ static int avalon_read(int fd, char *buf, ssize_t len)
 		len -= ret;
 	}
 
-	return 0;
+	return AVA_GETS_OK;
 }
 
 static int avalon_reset(struct cgpu_info *avalon, int fd)
diff --git a/driver-avalon.h b/driver-avalon.h
index 297bdda..ba22ae1 100644
--- a/driver-avalon.h
+++ b/driver-avalon.h
@@ -115,8 +115,6 @@ struct avalon_info {
 
 #define AVA_GETS_ERROR -1
 #define AVA_GETS_OK 0
-#define AVA_GETS_RESTART 1
-#define AVA_GETS_TIMEOUT 2
 
 #define AVA_SEND_ERROR -1
 #define AVA_SEND_OK 0