mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 11:56:45 +07:00
net: ethernet: mediatek: enhance with avoiding superfluous assignment inside mtk_get_ethtool_stats
data_src is unchanged inside the loop, so this patch moves the assignment to outside the loop to avoid unnecessarily assignment Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8847293992
commit
94d308d060
@ -2137,8 +2137,9 @@ static void mtk_get_ethtool_stats(struct net_device *dev,
|
||||
}
|
||||
}
|
||||
|
||||
data_src = (u64 *)hwstats;
|
||||
|
||||
do {
|
||||
data_src = (u64 *)hwstats;
|
||||
data_dst = data;
|
||||
start = u64_stats_fetch_begin_irq(&hwstats->syncp);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user