[PATCH 02/18] Staging: bcm: Properly format comments in Protocol.h

Kevin McKinney klmckinney1 at gmail.com
Sat Dec 22 19:27:40 UTC 2012


This patch properly formats comments, and removes
them as needed in Protocol.h.

Signed-off-by: Kevin McKinney <klmckinney1 at gmail.com>
---
 drivers/staging/bcm/Protocol.h |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/bcm/Protocol.h b/drivers/staging/bcm/Protocol.h
index d113ed4..7803ce5 100644
--- a/drivers/staging/bcm/Protocol.h
+++ b/drivers/staging/bcm/Protocol.h
@@ -13,7 +13,7 @@ struct ArpHeader {
 	unsigned char ar_sip[4];	/* sender IP address        */
 	unsigned char ar_tha[ETH_ALEN];	/* target hardware address  */
 	unsigned char ar_tip[4];	/* target IP address        */
-} /*__attribute__((packed))*/;
+};
 
 struct TransportHeaderT
 {
@@ -85,7 +85,7 @@ typedef struct _ETH_CS_ETH2_FRAME
 #define ETHERNET_FRAMETYPE_IPV6		ntohs(0x86dd)
 #define ETHERNET_FRAMETYPE_802QVLAN	ntohs(0x8100)
 
-//Per SF CS Specification Encodings
+/* Per SF CS Specification Encodings */
 typedef enum _E_SERVICEFLOW_CS_SPEC_
 {
 	eCSSpecUnspecified = 0,
@@ -119,7 +119,7 @@ typedef enum _E_SERVICEFLOW_CS_SPEC_
 #define	ARP_OP_REPLY		0x02
 #define	ARP_PKT_SIZE		60
 
-// This is the format for the TCP packet header
+/* This is the format for the TCP packet header */
 typedef struct _TCP_HEADER
 {
 	USHORT usSrcPort;
@@ -134,7 +134,7 @@ typedef struct _TCP_HEADER
 } TCP_HEADER, *PTCP_HEADER;
 
 #define TCP_HEADER_LEN		sizeof(TCP_HEADER)
-#define TCP_ACK			0x10  //Bit 4 in tcpflags field.
+#define TCP_ACK			0x10  /* Bit 4 in tcpflags field. */
 #define GET_TCP_HEADER_LEN(byte) ((byte&0xF0)>>4)
 
-#endif //__PROTOCOL_H__
+#endif /* __PROTOCOL_H__ */
-- 
1.7.9.5




More information about the devel mailing list