]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6060: Replace REG_WRITE macro
authorAndrew Lunn <andrew@lunn.ch>
Sat, 27 Apr 2019 17:32:58 +0000 (19:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Apr 2019 00:23:04 +0000 (20:23 -0400)
commit1113b797e36ae749c16499439e93c586dd129b5d
tree96654873a2a83abcef96933b5622d70c1e61a7c0
parent6e321623f4f0156a5d574eb1ae5f2bc4bdb31986
net: dsa: mv88e6060: Replace REG_WRITE macro

The REG_WRITE 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