Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <fengguang.wu@intel.com>
Fixes: 69d2ea9c7989 ("net: bcmgenet: Use correct I/O accessors")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Florian Fainelli and committed by
David S. Miller
d081a16d eaa72dc4

+1 -1
+1 -1
drivers/net/ethernet/broadcom/genet/bcmgenet.h
··· 684 684 u32 val, u32 off) \ 685 685 { \ 686 686 if (IS_ENABLED(CONFIG_MIPS) && IS_ENABLED(CONFIG_CPU_BIG_ENDIAN)) \ 687 - return __raw_writel(val, priv->base + offset + off); \ 687 + __raw_writel(val, priv->base + offset + off); \ 688 688 else \ 689 689 writel_relaxed(val, priv->base + offset + off); \ 690 690 }