parisc/sticon: fix reverse colors
authorSven Schnelle <svens@stackframe.org>
Sun, 14 Nov 2021 16:08:17 +0000 (17:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 09:39:20 +0000 (10:39 +0100)
commit1ab297809de835c2b0d196ed0a0b0b14bd7c7dd1
tree5915767f4f4f36d1b04de541584b99977e0ee6b8
parent6adbc07ebcaf8bead08b21687d49e0fc94400987
parisc/sticon: fix reverse colors

commit bec05f33ebc1006899c6d3e59a00c58881fe7626 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/console/sticon.c