diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-01-09 14:53:41 -0500 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-01-26 19:10:57 -0500 |
commit | 2aa9ef11e70c47ed26f831798f02ad3794e5ad41 (patch) | |
tree | 9d76b5ad28963af56beb3512b52678188b8be187 /drivers/net/ethernet/sfc/efx.c | |
parent | 86ee53020abe4eb9c85e612129e3848ee98302fd (diff) |
sfc: Minor formatting fixes
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx.c')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index c8e1c8a93edc..8ecddd056679 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c | |||
@@ -798,16 +798,14 @@ void efx_link_status_changed(struct efx_nic *efx) | |||
798 | } | 798 | } |
799 | 799 | ||
800 | /* Status message for kernel log */ | 800 | /* Status message for kernel log */ |
801 | if (link_state->up) { | 801 | if (link_state->up) |
802 | netif_info(efx, link, efx->net_dev, | 802 | netif_info(efx, link, efx->net_dev, |
803 | "link up at %uMbps %s-duplex (MTU %d)%s\n", | 803 | "link up at %uMbps %s-duplex (MTU %d)%s\n", |
804 | link_state->speed, link_state->fd ? "full" : "half", | 804 | link_state->speed, link_state->fd ? "full" : "half", |
805 | efx->net_dev->mtu, | 805 | efx->net_dev->mtu, |
806 | (efx->promiscuous ? " [PROMISC]" : "")); | 806 | (efx->promiscuous ? " [PROMISC]" : "")); |
807 | } else { | 807 | else |
808 | netif_info(efx, link, efx->net_dev, "link down\n"); | 808 | netif_info(efx, link, efx->net_dev, "link down\n"); |
809 | } | ||
810 | |||
811 | } | 809 | } |
812 | 810 | ||
813 | void efx_link_set_advertising(struct efx_nic *efx, u32 advertising) | 811 | void efx_link_set_advertising(struct efx_nic *efx, u32 advertising) |
@@ -1741,7 +1739,8 @@ static int efx_net_stop(struct net_device *net_dev) | |||
1741 | } | 1739 | } |
1742 | 1740 | ||
1743 | /* Context: process, dev_base_lock or RTNL held, non-blocking. */ | 1741 | /* Context: process, dev_base_lock or RTNL held, non-blocking. */ |
1744 | static struct rtnl_link_stats64 *efx_net_stats(struct net_device *net_dev, struct rtnl_link_stats64 *stats) | 1742 | static struct rtnl_link_stats64 *efx_net_stats(struct net_device *net_dev, |
1743 | struct rtnl_link_stats64 *stats) | ||
1745 | { | 1744 | { |
1746 | struct efx_nic *efx = netdev_priv(net_dev); | 1745 | struct efx_nic *efx = netdev_priv(net_dev); |
1747 | struct efx_mac_stats *mac_stats = &efx->mac_stats; | 1746 | struct efx_mac_stats *mac_stats = &efx->mac_stats; |