sh_eth: stop reading ECMR in sh_eth_dev_init()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 10 Jan 2016 21:28:14 +0000 (00:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jan 2016 22:31:09 +0000 (17:31 -0500)
commitbffa731f8f44e0444afc56875a10fd07e9a08c6c
tree77fe59349bc0de5be7377046e678eaa02f3ba0db
parent1c1fa821199c707a193efd3bc93c4ac9357bafa0
sh_eth: stop reading ECMR in sh_eth_dev_init()

The code in sh_eth_dev_init()  twiddling the ECMR bits always looked a bit
strange to me:  if one intends to respect 'mdp->duplex', why save old value
of the ECMR.DM bit? As all the other bits are zeroed anyway, we don't really
need to read ECMR before writing to it.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c