diff options
author | Rosen Penev <rosenp@gmail.com> | 2023-12-10 15:12:24 -0800 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2024-01-05 16:12:49 +0100 |
commit | 89ff407d68ca152a28811f94c0a8e9ebb11f44d7 (patch) | |
tree | 7215ea45226d9054d3490646dc419b4acc97b360 /target/linux/ipq40xx/patches-6.1/700-net-ipqess-introduce-the-Qualcomm-IPQESS-driver.patch | |
parent | 511c7ff03231752ea2adbdf7cc1af4be962c9b65 (diff) | |
download | openwrt-89ff407d68ca152a28811f94c0a8e9ebb11f44d7.tar.gz openwrt-89ff407d68ca152a28811f94c0a8e9ebb11f44d7.tar.bz2 openwrt-89ff407d68ca152a28811f94c0a8e9ebb11f44d7.zip |
treewide: use ethtool_puts instead of memcpy
The former is a safer and more readable version.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'target/linux/ipq40xx/patches-6.1/700-net-ipqess-introduce-the-Qualcomm-IPQESS-driver.patch')
-rw-r--r-- | target/linux/ipq40xx/patches-6.1/700-net-ipqess-introduce-the-Qualcomm-IPQESS-driver.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ipq40xx/patches-6.1/700-net-ipqess-introduce-the-Qualcomm-IPQESS-driver.patch b/target/linux/ipq40xx/patches-6.1/700-net-ipqess-introduce-the-Qualcomm-IPQESS-driver.patch index 254e85c284..ccc56d115e 100644 --- a/target/linux/ipq40xx/patches-6.1/700-net-ipqess-introduce-the-Qualcomm-IPQESS-driver.patch +++ b/target/linux/ipq40xx/patches-6.1/700-net-ipqess-introduce-the-Qualcomm-IPQESS-driver.patch @@ -1953,7 +1953,7 @@ Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com> + switch (stringset) { + case ETH_SS_STATS: + for (i = 0; i < ARRAY_SIZE(ipqess_stats); i++) -+ ethtool_sprintf(&p, ipqess_stats[i].string); ++ ethtool_puts(&p, ipqess_stats[i].string); + break; + } +} |