]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit033fb97ad221b179ddc147b0d0b85071ff8a2184
treea107bd7eb2f574134373ea062d8924bd49a8f9f8
parent1113b797e36ae749c16499439e93c586dd129b5d
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