netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH drivers/net/skfp/h/fplustm.h] parentheses around RX_FIFO_SPACE definition
@ 2007-12-17 21:55 Roel Kluin
  0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2007-12-17 21:55 UTC (permalink / raw)
  To: netdev

drivers/net/skfp/h/fplustm.h:129:
#define RX_FIFO_SPACE           0x4000 - RX_FIFO_OFF

drivers/net/skfp/fplustm.c:1404:
                smc->hw.fp.fifo.rx1_fifo_size = RX_FIFO_SPACE *
                SMT_R1_RXD_COUNT/(SMT_R1_RXD_COUNT+SMT_R2_RXD_COUNT) ;
                smc->hw.fp.fifo.rx2_fifo_size = RX_FIFO_SPACE *
                SMT_R2_RXD_COUNT/(SMT_R1_RXD_COUNT+SMT_R2_RXD_COUNT) ;

Add parentheses to definition to prevent operator precedence errors

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
diff --git a/drivers/net/skfp/h/fplustm.h b/drivers/net/skfp/h/fplustm.h
index 98bbf65..588579c 100644
--- a/drivers/net/skfp/h/fplustm.h
+++ b/drivers/net/skfp/h/fplustm.h
@@ -126,7 +126,7 @@ struct s_smt_rx_queue {
 #define	SYNC_TRAFFIC_ON		0x2
 
 /* big FIFO memory */
-#define	RX_FIFO_SPACE		0x4000 - RX_FIFO_OFF
+#define	RX_FIFO_SPACE		(0x4000 - RX_FIFO_OFF)
 #define	TX_FIFO_SPACE		0x4000
 
 #define	TX_SMALL_FIFO		0x0900

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-17 21:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-17 21:55 [PATCH drivers/net/skfp/h/fplustm.h] parentheses around RX_FIFO_SPACE definition Roel Kluin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).