remove extra parenthesis in NGE_LASTDESC macro

This commit is contained in:
purplerain 2023-09-30 05:04:41 +00:00
parent 35f88e7af9
commit f857de4ffe
Signed by: purplerain
GPG Key ID: F42C07F07E2E35B7

View File

@ -526,7 +526,7 @@ struct nge_desc_32 {
#define NGE_CMDSTS_MORE 0x40000000 #define NGE_CMDSTS_MORE 0x40000000
#define NGE_CMDSTS_OWN 0x80000000 #define NGE_CMDSTS_OWN 0x80000000
#define NGE_LASTDESC(x) (!((x)->nge_ctl & NGE_CMDSTS_MORE))) #define NGE_LASTDESC(x) (!((x)->nge_ctl & NGE_CMDSTS_MORE))
#define NGE_OWNDESC(x) ((x)->nge_ctl & NGE_CMDSTS_OWN) #define NGE_OWNDESC(x) ((x)->nge_ctl & NGE_CMDSTS_OWN)
#define NGE_INC(x, y) (x) = (x + 1) % y #define NGE_INC(x, y) (x) = (x + 1) % y
#define NGE_RXBYTES(x) ((x)->nge_ctl & NGE_CMDSTS_BUFLEN) #define NGE_RXBYTES(x) ((x)->nge_ctl & NGE_CMDSTS_BUFLEN)