Skip to content

Commit

Permalink
char/nvram: Use bitwise OR to obtain Atari video mode data
Browse files Browse the repository at this point in the history
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Finn Thain authored and Greg Kroah-Hartman committed Aug 5, 2015
1 parent ff63ec1 commit d25ded8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/nvram.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ static void atari_proc_infos(unsigned char *nvram, struct seq_file *seq,
seq_printf(seq, "%ds%s\n", nvram[10],
nvram[10] < 8 ? ", no memory test" : "");

vmode = (nvram[14] << 8) || nvram[15];
vmode = (nvram[14] << 8) | nvram[15];
seq_printf(seq,
"Video mode : %s colors, %d columns, %s %s monitor\n",
colors[vmode & 7],
Expand Down

0 comments on commit d25ded8

Please sign in to comment.