From: Lynn Lei Date: Tue, 1 Aug 2017 15:20:38 +0000 (+0200) Subject: video: fbdev: sm712fb.c: fixed constant-left comparison warning X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5bbee78a17ae54f419972374ef606afc8e150e74;p=openwrt%2Fstaging%2Fblogic.git 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 Cc: Sudip Mukherjee Cc: Teddy Wang Signed-off-by: Bartlomiej Zolnierkiewicz --- 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;