video: fbdev: sm712fb.c: fixed constant-left comparison warning
authorLynn Lei <lynnl.yet@gmail.com>
Tue, 1 Aug 2017 15:20:38 +0000 (17:20 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Tue, 1 Aug 2017 15:20:38 +0000 (17:20 +0200)
Fixed a constant-left comparison warning issue check by
scripts/checkpatch.pl:
  WARNING: Comparisons should place the constant on the right side of the test

Signed-off-by: Lynn Lei <lynnl.wit@gmail.com>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Teddy Wang <teddy.wang@siliconmotion.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/sm712fb.c

index 172e941468785ff52aee12e3af2f8a06593724d7..502d0de2feec524f6b8eec46072300a86733179c 100644 (file)
@@ -1478,7 +1478,7 @@ static int smtcfb_pci_probe(struct pci_dev *pdev,
        }
 
        /* can support 32 bpp */
-       if (15 == sfb->fb->var.bits_per_pixel)
+       if (sfb->fb->var.bits_per_pixel == 15)
                sfb->fb->var.bits_per_pixel = 16;
 
        sfb->fb->var.xres_virtual = sfb->fb->var.xres;