Commit afd6f4270307f8154dad9e2f74732d722739dac3

Con Kolivas 2013-04-07T16:09:26

avalon_gets is always called from the one call site so inline it.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon.c b/driver-avalon.c
index 1ef19aa..6e6d143 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -201,7 +201,7 @@ static int avalon_send_task(int fd, const struct avalon_task *at,
 	return AVA_SEND_BUFFER_EMPTY;
 }
 
-static int avalon_gets(int fd, uint8_t *buf, struct thr_info *thr,
+static inline int avalon_gets(int fd, uint8_t *buf, struct thr_info *thr,
 		       struct timeval *tv_finish)
 {
 	int read_amount = AVALON_READ_SIZE;