Skip to content

Commit

Permalink
myri10ge: trivial formatting fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brice Goglin authored and Jeff Garzik committed May 13, 2008
1 parent bd2db0c commit 99f5f87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/net/myri10ge/myri10ge.c
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ myri10ge_get_settings(struct net_device *netdev, struct ethtool_cmd *cmd)
ptr = mgp->product_code_string;
if (ptr == NULL) {
printk(KERN_ERR "myri10ge: %s: Missing product code\n",
netdev->name);
netdev->name);
return 0;
}
for (i = 0; i < 3; i++, ptr++) {
Expand Down Expand Up @@ -1362,6 +1362,7 @@ static int
myri10ge_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *coal)
{
struct myri10ge_priv *mgp = netdev_priv(netdev);

coal->rx_coalesce_usecs = mgp->intr_coal_delay;
return 0;
}
Expand Down Expand Up @@ -1421,6 +1422,7 @@ myri10ge_get_ringparam(struct net_device *netdev,
static u32 myri10ge_get_rx_csum(struct net_device *netdev)
{
struct myri10ge_priv *mgp = netdev_priv(netdev);

if (mgp->csum_flag)
return 1;
else
Expand All @@ -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)
{
struct myri10ge_priv *mgp = netdev_priv(netdev);

if (csum_enabled)
mgp->csum_flag = MXGEFW_FLAGS_CKSUM;
else
Expand Down

0 comments on commit 99f5f87

Please sign in to comment.