Skip to content

Commit d25ded8

Browse files
Finn Thaingregkh
authored andcommitted
char/nvram: Use bitwise OR to obtain Atari video mode data
Signed-off-by: Finn Thain <[email protected]> Acked-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ff63ec1 commit d25ded8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/char/nvram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ static void atari_proc_infos(unsigned char *nvram, struct seq_file *seq,
702702
seq_printf(seq, "%ds%s\n", nvram[10],
703703
nvram[10] < 8 ? ", no memory test" : "");
704704

705-
vmode = (nvram[14] << 8) || nvram[15];
705+
vmode = (nvram[14] << 8) | nvram[15];
706706
seq_printf(seq,
707707
"Video mode : %s colors, %d columns, %s %s monitor\n",
708708
colors[vmode & 7],

0 commit comments

Comments
 (0)