]> git.karo-electronics.de Git - linux-beck.git/commitdiff
char/nvram: Use bitwise OR to obtain Atari video mode data
authorFinn Thain <fthain@telegraphics.com.au>
Fri, 3 Jul 2015 03:35:36 +0000 (13:35 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 20:30:16 +0000 (13:30 -0700)
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>
drivers/char/nvram.c

index 9df78e2cc45d2951fc77815975cbeeb6633aea3a..97c2d8d433d6227f82f8524da27ecbd8929d9cd8 100644 (file)
@@ -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],