aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/myri10ge
diff options
context:
space:
mode:
authorBrice Goglin <brice@myri.com>2008-05-08 20:19:08 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-05-13 01:30:29 -0400
commit99f5f87eb689c5766fa2c101fe75310a7f9ba3cd (patch)
treec96446b641bc85dcc4fde19fa1fae16bb839b7d9 /drivers/net/myri10ge
parentbd2db0cf2411ebc081d45bde1b7c6cf726b832f2 (diff)
myri10ge: trivial formatting fix
Add some blank lines to uniformize the code and match the upstream code. Signed-off-by: Brice Goglin <brice@myri.com> Signed-off-by: Andrew Gallatin <gallatin@myri.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/myri10ge')
-rw-r--r--drivers/net/myri10ge/myri10ge.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index 48fe624afa53..9165a55f8111 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -1328,7 +1328,7 @@ myri10ge_get_settings(struct net_device *netdev, struct ethtool_cmd *cmd)
1328 ptr = mgp->product_code_string; 1328 ptr = mgp->product_code_string;
1329 if (ptr == NULL) { 1329 if (ptr == NULL) {
1330 printk(KERN_ERR "myri10ge: %s: Missing product code\n", 1330 printk(KERN_ERR "myri10ge: %s: Missing product code\n",
1331 netdev->name); 1331 netdev->name);
1332 return 0; 1332 return 0;
1333 } 1333 }
1334 for (i = 0; i < 3; i++, ptr++) { 1334 for (i = 0; i < 3; i++, ptr++) {
@@ -1362,6 +1362,7 @@ static int
1362myri10ge_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *coal) 1362myri10ge_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *coal)
1363{ 1363{
1364 struct myri10ge_priv *mgp = netdev_priv(netdev); 1364 struct myri10ge_priv *mgp = netdev_priv(netdev);
1365
1365 coal->rx_coalesce_usecs = mgp->intr_coal_delay; 1366 coal->rx_coalesce_usecs = mgp->intr_coal_delay;
1366 return 0; 1367 return 0;
1367} 1368}
@@ -1421,6 +1422,7 @@ myri10ge_get_ringparam(struct net_device *netdev,
1421static u32 myri10ge_get_rx_csum(struct net_device *netdev) 1422static u32 myri10ge_get_rx_csum(struct net_device *netdev)
1422{ 1423{
1423 struct myri10ge_priv *mgp = netdev_priv(netdev); 1424 struct myri10ge_priv *mgp = netdev_priv(netdev);
1425
1424 if (mgp->csum_flag) 1426 if (mgp->csum_flag)
1425 return 1; 1427 return 1;
1426 else 1428 else
@@ -1430,6 +1432,7 @@ static u32 myri10ge_get_rx_csum(struct net_device *netdev)
1430static int myri10ge_set_rx_csum(struct net_device *netdev, u32 csum_enabled) 1432static int myri10ge_set_rx_csum(struct net_device *netdev, u32 csum_enabled)
1431{ 1433{
1432 struct myri10ge_priv *mgp = netdev_priv(netdev); 1434 struct myri10ge_priv *mgp = netdev_priv(netdev);
1435
1433 if (csum_enabled) 1436 if (csum_enabled)
1434 mgp->csum_flag = MXGEFW_FLAGS_CKSUM; 1437 mgp->csum_flag = MXGEFW_FLAGS_CKSUM;
1435 else 1438 else