Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d081a16d authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

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: default avatarkbuild test robot <fengguang.wu@intel.com>
Fixes: 69d2ea9c ("net: bcmgenet: Use correct I/O accessors")
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent eaa72dc4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);		\
}