[PATCH 05/18] Staging: bcm: Fix issue: "Macros with complex values should be enclosed in parenthesis" in Protocol.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fixes the following issue: "Macros with
complex values should be enclosed in parenthesis"
as reported by checkpatch.pl.

Signed-off-by: Kevin McKinney <klmckinney1@xxxxxxxxx>
---
 drivers/staging/bcm/Protocol.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/bcm/Protocol.h b/drivers/staging/bcm/Protocol.h
index bb62e17..a7028d5 100644
--- a/drivers/staging/bcm/Protocol.h
+++ b/drivers/staging/bcm/Protocol.h
@@ -94,10 +94,10 @@ typedef enum _E_SERVICEFLOW_CS_SPEC_ {
 #define IP_VERSION(byte)	(((byte&0xF0)>>4))
 
 #define MAC_ADDRESS_SIZE	6
-#define	ETH_AND_IP_HEADER_LEN	14 + 20
+#define	ETH_AND_IP_HEADER_LEN	(14 + 20)
 #define L4_SRC_PORT_LEN		2
 #define L4_DEST_PORT_LEN	2
-#define	CTRL_PKT_LEN		8 + ETH_AND_IP_HEADER_LEN
+#define	CTRL_PKT_LEN		(8 + ETH_AND_IP_HEADER_LEN)
 
 #define	ETH_ARP_FRAME		0x806
 #define	ETH_IPV4_FRAME		0x800
-- 
1.7.9.5

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux