mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-09 20:21:01 +00:00
avalon_gets is always called from the one call site so inline it.
This commit is contained in:
parent
3671b2c310
commit
afd6f42703
@ -201,7 +201,7 @@ static int avalon_send_task(int fd, const struct avalon_task *at,
|
|||||||
return AVA_SEND_BUFFER_EMPTY;
|
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)
|
struct timeval *tv_finish)
|
||||||
{
|
{
|
||||||
int read_amount = AVALON_READ_SIZE;
|
int read_amount = AVALON_READ_SIZE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user