]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
MIPS: OCTEON: cvmx-gmxx-defs.h: use default register value return when possible
authorAaro Koskinen <aaro.koskinen@iki.fi>
Wed, 21 Nov 2018 22:37:43 +0000 (00:37 +0200)
committerPaul Burton <paul.burton@mips.com>
Wed, 21 Nov 2018 23:36:48 +0000 (15:36 -0800)
commit4815c6d77df7684014c115f03fb4314ef58ca649
treeec67e5509c16e0245a9ccce827a7d5d7f5a17574
parent5e605d2efed1702e99abfd347f7ac152599defbe
MIPS: OCTEON: cvmx-gmxx-defs.h: use default register value return when possible

If we are about to return the same register address that would
be the default anyway, fallback to default return instead of adding
a case label.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Patchwork: https://patchwork.linux-mips.org/patch/21200/
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@linux-mips.org
arch/mips/include/asm/octeon/cvmx-gmxx-defs.h