summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/sm712fb.c
diff options
context:
space:
mode:
authorLynn Lei <lynnl.yet@gmail.com>2017-08-01 17:20:38 +0200
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2017-08-01 17:20:38 +0200
commit5bbee78a17ae54f419972374ef606afc8e150e74 (patch)
tree17a45483392598a9c52cccad049f55bf35101d90 /drivers/video/fbdev/sm712fb.c
parent142932118c0637977ffb924d2c0ffe1443df86df (diff)
downloadlinux-5bbee78a17ae54f419972374ef606afc8e150e74.tar.bz2
video: fbdev: sm712fb.c: fixed constant-left comparison warning
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>
Diffstat (limited to 'drivers/video/fbdev/sm712fb.c')
-rw-r--r--drivers/video/fbdev/sm712fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/sm712fb.c b/drivers/video/fbdev/sm712fb.c
index 172e94146878..502d0de2feec 100644
--- a/drivers/video/fbdev/sm712fb.c
+++ b/drivers/video/fbdev/sm712fb.c
@@ -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;