diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2014-09-03 21:14:33 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-06 02:11:20 +0400 |
commit | a2ea14d7724e5fc1e5ba187fb47f24dfb8c0f381 (patch) | |
tree | 068947ed20277f6d86bdc5758fa63b89eab40209 /drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c | |
parent | e6f0562ff42967a21708acc963ae12059d1d13e3 (diff) | |
download | linux-a2ea14d7724e5fc1e5ba187fb47f24dfb8c0f381.tar.xz |
amd-xgbe: Checkpatch driver fixes
This patch contains fixes identified by checkpatch when run with the
strict option.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c b/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c index a076aca138a1..2289526b6f1c 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-ethtool.c @@ -121,7 +121,6 @@ #include "xgbe.h" #include "xgbe-common.h" - struct xgbe_stats { char stat_string[ETH_GSTRING_LEN]; int stat_size; @@ -173,6 +172,7 @@ static const struct xgbe_stats xgbe_gstring_stats[] = { XGMAC_MMC_STAT("rx_watchdog_errors", rxwatchdogerror), XGMAC_MMC_STAT("rx_pause_frames", rxpauseframes), }; + #define XGBE_STATS_COUNT ARRAY_SIZE(xgbe_gstring_stats) static void xgbe_get_strings(struct net_device *netdev, u32 stringset, u8 *data) |