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)
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>

No differences found