net: ethernet: mediatek: remove useless code in mtk_probe()
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 7 Jul 2017 20:23:34 +0000 (15:23 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sat, 8 Jul 2017 10:27:55 +0000 (11:27 +0100)
commite8df760307830ca26cf380a9a4b36468a0352fa5
treed7c6c009a17b14c8063c386139341e75a2ed3566
parenta906c1aa43fa9f3785240fda03269d4283635df2
net: ethernet: mediatek: remove useless code in mtk_probe()

Remove useless local variables _match_, _soc_ and the code related.

Notice that

const struct of_device_id of_mtk_match[] = {
        { .compatible = "mediatek,mt2701-eth" },
        {},
};

So match->data is NULL.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c