net: ethernet: mediatek: enhance with avoiding superfluous assignment inside mtk_get_...
authorSean Wang <sean.wang@mediatek.com>
Tue, 20 Sep 2016 03:26:48 +0000 (11:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Sep 2016 04:06:32 +0000 (00:06 -0400)
commit94d308d060cd3ee65152b8ebd7a1c24fa86eee82
tree677122b5da6f665be54f4a7600a011278969fb50
parent8847293992606677d5e446d1e712bd128ea7977f
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>
drivers/net/ethernet/mediatek/mtk_eth_soc.c