[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1279138937-12985-1-git-send-email-chihau@gmail.com>
Date: Wed, 14 Jul 2010 16:22:17 -0400
From: Chihau Chau <chihau@...il.com>
To: davem@...emloft.net
Cc: eric.dumazet@...il.com, opurdila@...acom.com,
netdev@...r.kernel.org, linux-devel@...r.kernel.org,
mitov@...p.bas.bg, Chihau Chau <chihau@...il.com>
Subject: [PATCH] Net: ethernet: eth: fix some code style issues
From: Chihau Chau <chihau@...il.com>
This fixes to include <linux/uaccess.h> instead <asm/uaccess.h> and some
code style issues like space before close parenthesis and space before
tabs.
Signed-off-by: Chihau Chau <chihau@...il.com>
---
net/ethernet/eth.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c
index 61ec032..25ccce0 100644
--- a/net/ethernet/eth.c
+++ b/net/ethernet/eth.c
@@ -58,7 +58,7 @@
#include <net/ipv6.h>
#include <net/ip.h>
#include <net/dsa.h>
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>
#include <asm/system.h>
__setup("ether=", netdev_boot_setup);
@@ -180,7 +180,8 @@ __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev)
* seems to set IFF_PROMISC.
*/
- else if (1 /*dev->flags&IFF_PROMISC */ ) {
+ /*dev->flags&IFF_PROMISC */
+ else if (1) {
if (unlikely(compare_ether_addr_64bits(eth->h_dest, dev->dev_addr)))
skb->pkt_type = PACKET_OTHERHOST;
}
@@ -338,7 +339,7 @@ void ether_setup(struct net_device *dev)
{
dev->header_ops = ð_header_ops;
dev->type = ARPHRD_ETHER;
- dev->hard_header_len = ETH_HLEN;
+ dev->hard_header_len = ETH_HLEN;
dev->mtu = ETH_DATA_LEN;
dev->addr_len = ETH_ALEN;
dev->tx_queue_len = 1000; /* Ethernet wants good queues */
--
1.5.6.3
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists