Re: [PATCH net-next] net: ethernet: mediatek: enhance with avoiding superfluous assignment inside mtk_get_ethtool_stats

2016-09-20 Thread David Miller
From: Date: Tue, 20 Sep 2016 11:26:48 +0800 > From: Sean Wang > > 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

[PATCH net-next] net: ethernet: mediatek: enhance with avoiding superfluous assignment inside mtk_get_ethtool_stats

2016-09-19 Thread sean.wang
From: Sean Wang 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 --- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 3 ++- 1 file changed, 2