net: dsa: mv88e6060: Replace REG_READ macro
authorAndrew Lunn <andrew@lunn.ch>
Sat, 27 Apr 2019 17:32:59 +0000 (19:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Apr 2019 00:23:04 +0000 (20:23 -0400)
commit1ba22bf547a3c92d3e6c5c8d3e3ebe48a7bc26b3
treea107bd7eb2f574134373ea062d8924bd49a8f9f8
parentc4362c37431b999c84dd047f0125592987c09142
net: dsa: mv88e6060: Replace REG_READ macro

The REG_READ macro contains a return statement, making it not very
safe. Remove it by inlining the code.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6060.c