Commit 99f5f87e authored by Brice Goglin's avatar Brice Goglin Committed by Jeff Garzik

myri10ge: trivial formatting fix

Add some blank lines to uniformize the code and match
the upstream code.
Signed-off-by: default avatarBrice Goglin <brice@myri.com>
Signed-off-by: default avatarAndrew Gallatin <gallatin@myri.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent bd2db0cf
...@@ -1328,7 +1328,7 @@ myri10ge_get_settings(struct net_device *netdev, struct ethtool_cmd *cmd) ...@@ -1328,7 +1328,7 @@ myri10ge_get_settings(struct net_device *netdev, struct ethtool_cmd *cmd)
ptr = mgp->product_code_string; ptr = mgp->product_code_string;
if (ptr == NULL) { if (ptr == NULL) {
printk(KERN_ERR "myri10ge: %s: Missing product code\n", printk(KERN_ERR "myri10ge: %s: Missing product code\n",
netdev->name); netdev->name);
return 0; return 0;
} }
for (i = 0; i < 3; i++, ptr++) { for (i = 0; i < 3; i++, ptr++) {
...@@ -1362,6 +1362,7 @@ static int ...@@ -1362,6 +1362,7 @@ static int
myri10ge_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *coal) myri10ge_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *coal)
{ {
struct myri10ge_priv *mgp = netdev_priv(netdev); struct myri10ge_priv *mgp = netdev_priv(netdev);
coal->rx_coalesce_usecs = mgp->intr_coal_delay; coal->rx_coalesce_usecs = mgp->intr_coal_delay;
return 0; return 0;
} }
...@@ -1421,6 +1422,7 @@ myri10ge_get_ringparam(struct net_device *netdev, ...@@ -1421,6 +1422,7 @@ myri10ge_get_ringparam(struct net_device *netdev,
static u32 myri10ge_get_rx_csum(struct net_device *netdev) static u32 myri10ge_get_rx_csum(struct net_device *netdev)
{ {
struct myri10ge_priv *mgp = netdev_priv(netdev); struct myri10ge_priv *mgp = netdev_priv(netdev);
if (mgp->csum_flag) if (mgp->csum_flag)
return 1; return 1;
else else
...@@ -1430,6 +1432,7 @@ static u32 myri10ge_get_rx_csum(struct net_device *netdev) ...@@ -1430,6 +1432,7 @@ static u32 myri10ge_get_rx_csum(struct net_device *netdev)
static int myri10ge_set_rx_csum(struct net_device *netdev, u32 csum_enabled) static int myri10ge_set_rx_csum(struct net_device *netdev, u32 csum_enabled)
{ {
struct myri10ge_priv *mgp = netdev_priv(netdev); struct myri10ge_priv *mgp = netdev_priv(netdev);
if (csum_enabled) if (csum_enabled)
mgp->csum_flag = MXGEFW_FLAGS_CKSUM; mgp->csum_flag = MXGEFW_FLAGS_CKSUM;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment