From f857de4ffee409e4f6e2ee58c16078d24871dfc1 Mon Sep 17 00:00:00 2001 From: purplerain Date: Sat, 30 Sep 2023 05:04:41 +0000 Subject: [PATCH] remove extra parenthesis in NGE_LASTDESC macro --- sys/dev/pci/if_ngereg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/if_ngereg.h b/sys/dev/pci/if_ngereg.h index eb0a1f1b3..aefe6911e 100644 --- a/sys/dev/pci/if_ngereg.h +++ b/sys/dev/pci/if_ngereg.h @@ -526,7 +526,7 @@ struct nge_desc_32 { #define NGE_CMDSTS_MORE 0x40000000 #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_INC(x, y) (x) = (x + 1) % y #define NGE_RXBYTES(x) ((x)->nge_ctl & NGE_CMDSTS_BUFLEN)