treewide: use ethtool_puts instead of memcpy
[openwrt/staging/jow.git] / target / linux / ath79 / files / drivers / net / ethernet / atheros / ag71xx / ag71xx_ethtool.c
index e5adc821d279a290cc9a39d74f45fd3450cf91b6..b022a3e9fb7a194f09e412de2a9b6a1df0571673 100644 (file)
@@ -169,8 +169,7 @@ static void ag71xx_ethtool_get_strings(struct net_device *netdev, u32 sset,
                int i;
 
                for (i = 0; i < ARRAY_SIZE(ag71xx_statistics); i++)
-                       memcpy(data + i * ETH_GSTRING_LEN,
-                              ag71xx_statistics[i].name, ETH_GSTRING_LEN);
+                       ethtool_puts(&data, ag71xx_statistics[i].name);
        }
 }