ravb: stop reading ECMR in ravb_emac_init()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 10 Jan 2016 21:27:38 +0000 (00:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jan 2016 22:31:09 +0000 (17:31 -0500)
commit1c1fa821199c707a193efd3bc93c4ac9357bafa0
tree8060974a68209b431395d16536e2eaaa5675ecc8
parent66530bdf85eb1d72a0c399665e09a2c2298501c6
ravb: stop reading ECMR in ravb_emac_init()

The code in ravb_emac_init() twiddling the ECMR bits always looked a bit
strange to me: if one intends to respect 'priv->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/ravb_main.c