]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbde2268715536abae15bac349efbd1166c3a3656
treed9e689d617b6da36ee67cdcfea573fe3fc17c2e0
parent40a9af63ae9ec42386d6c40b14f92fb56557c9a8
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