net: bcmgenet: Do not return from void function
Subsystems (3)
PATCH 1/1 net: bcmgenet: Do not return from void function
A stray return was added in the macro bcmgenet_##name##_writel where it should not, drop it.
Reported-by kbuild test robot <[email protected]>
Fixes 69d2ea9c7989 ("net: bcmgenet: Use correct I/O accessors")
Signed-off-by Florian Fainelli <[email protected]>
--- drivers/net/ethernet/broadcom/genet/bcmgenet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/broadcom/genet/bcmgenet.h +1 -1
@@ -684,7 +684,7 @@ static inline void bcmgenet_##name##_writel(struct bcmgenet_priv *priv, \ u32 val, u32 off) \ { \if (IS_ENABLED (CONFIG_MIPS ) &&IS_ENABLED (CONFIG_CPU_BIG_ENDIAN )) \ -return __raw_writel (val, priv->base + offset + off); \ +__raw_writel (val, priv->base + offset + off); \else \writel_relaxed (val, priv->base + offset + off); \ }
Signature · 1 line
2.11.0
From: Florian Fainelli <[email protected]>
Date: Tue, 29 Aug 2017 21:48:51 -0700
Quoted 6 lines
A stray return was added in the macro bcmgenet_##name##_writel where it should not, drop it.
Reported-by kbuild test robot <[email protected]>Fixes 69d2ea9c7989 ("net: bcmgenet: Use correct I/O accessors")Signed-off-by Florian Fainelli <[email protected]>
Applied, thanks.