Browse Source

Check explicitly that ava_buffer_full equals the macro.

Con Kolivas 13 years ago
parent
commit
596784aaf3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      driver-avalon.c

+ 2 - 2
driver-avalon.c

@@ -674,7 +674,7 @@ static void *avalon_send_tasks(void *userdata)
 		struct avalon_task at;
 		int idled = 0;
 
-		while (avalon_buffer_full(fd)) {
+		while (avalon_buffer_full(fd) == AVA_BUFFER_FULL) {
 			nmsleep(40);
 		}
 
@@ -682,7 +682,7 @@ static void *avalon_send_tasks(void *userdata)
 		start_count = avalon->work_array * avalon_get_work_count;
 		end_count = start_count + avalon_get_work_count;
 		for (i = start_count, j = 0; i < end_count; i++, j++) {
-			if (unlikely(avalon_buffer_full(fd))) {
+			if (unlikely(avalon_buffer_full(fd) == AVA_BUFFER_FULL)) {
 				applog(LOG_WARNING,
 				       "AVA%i: Buffer full before all  work queued",
 					avalon->device_id);