Skip to content

Commit

Permalink
arkfb: fix misplaced parentheses
Browse files Browse the repository at this point in the history
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Ondrej Zajicek <santiago@crfreenet.org>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
RoelKluin authored and torvalds committed Apr 1, 2009
1 parent 032220b commit b935257
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/arkfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ static void ark_dac_read_regs(void *data, u8 *code, int count)

while (count != 0)
{
vga_wseq(NULL, 0x1C, regval | (code[0] & 4) ? 0x80 : 0);
vga_wseq(NULL, 0x1C, regval | (code[0] & 4 ? 0x80 : 0));
code[1] = vga_r(NULL, dac_regs[code[0] & 3]);
count--;
code += 2;
Expand All @@ -485,7 +485,7 @@ static void ark_dac_write_regs(void *data, u8 *code, int count)

while (count != 0)
{
vga_wseq(NULL, 0x1C, regval | (code[0] & 4) ? 0x80 : 0);
vga_wseq(NULL, 0x1C, regval | (code[0] & 4 ? 0x80 : 0));
vga_w(NULL, dac_regs[code[0] & 3], code[1]);
count--;
code += 2;
Expand Down

0 comments on commit b935257

Please sign in to comment.