mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Use AVA_GETS_OK macro in avalon_read.
This commit is contained in:
parent
ebf885520d
commit
7cf154bfa5
@ -262,7 +262,7 @@ static int avalon_read(int fd, char *buf, ssize_t len)
|
|||||||
len -= ret;
|
len -= ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return AVA_GETS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int avalon_reset(struct cgpu_info *avalon, int fd)
|
static int avalon_reset(struct cgpu_info *avalon, int fd)
|
||||||
|
@ -115,8 +115,6 @@ struct avalon_info {
|
|||||||
|
|
||||||
#define AVA_GETS_ERROR -1
|
#define AVA_GETS_ERROR -1
|
||||||
#define AVA_GETS_OK 0
|
#define AVA_GETS_OK 0
|
||||||
#define AVA_GETS_RESTART 1
|
|
||||||
#define AVA_GETS_TIMEOUT 2
|
|
||||||
|
|
||||||
#define AVA_SEND_ERROR -1
|
#define AVA_SEND_ERROR -1
|
||||||
#define AVA_SEND_OK 0
|
#define AVA_SEND_OK 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user