parisc/sticon: fix reverse colors
authorSven Schnelle <svens@stackframe.org>
Sun, 14 Nov 2021 16:08:17 +0000 (17:08 +0100)
committerHelge Deller <deller@gmx.de>
Wed, 17 Nov 2021 10:04:02 +0000 (11:04 +0100)
commitbec05f33ebc1006899c6d3e59a00c58881fe7626
treed9e689d617b6da36ee67cdcfea573fe3fc17c2e0
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
parisc/sticon: fix reverse colors

sticon_build_attr() checked the reverse argument and flipped
background and foreground color, but returned the non-reverse
value afterwards. Fix this and also add two local variables
for foreground and background color to make the code easier
to read.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/console/sticon.c