From patchwork Tue Jul 4 15:24:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lynn Lei X-Patchwork-Id: 9825313 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E333860237 for ; Tue, 4 Jul 2017 15:24:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4CFB28047 for ; Tue, 4 Jul 2017 15:24:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C9A2A280FC; Tue, 4 Jul 2017 15:24:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7472628047 for ; Tue, 4 Jul 2017 15:24:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752466AbdGDPYq (ORCPT ); Tue, 4 Jul 2017 11:24:46 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34060 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752376AbdGDPYp (ORCPT ); Tue, 4 Jul 2017 11:24:45 -0400 Received: by mail-pf0-f195.google.com with SMTP id c24so16316174pfe.1; Tue, 04 Jul 2017 08:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:mime-version:content-disposition; bh=dX/yhdHRVgiPgG8w3DXDiDM6E2w5ICZMzjwTacZK0Cc=; b=BMrfMDN76VSovshHsifBldepivcAs+UrMyJAFS8j5O5cqgbKI9rCZd7cxLHeUqZpiZ S+UPTpkIbehEoUkbsHb1gZTISlgCKB97ik/TvaP3BRkgyj2OPvaLf7kw4ZAYIxK87U2Z MffwZTsQKTasF2Km4yauyJMaskfG98H6/1Yg52TqBZmOZzJPewhkB2hK7cEvXmh6wm4C omtdXBPsrFjP+uSSCAYNP+wpuwDPJJdODccjE7cRdqc0dnSOk09BUefpcCywBBr7bCK5 rZq19v2l5QpGVtrg9zeaWeFsOfzHyT2ZZtsmWhhc0ihebISCuqjEtio44I8TPjVEtieQ vWvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:mime-version :content-disposition; bh=dX/yhdHRVgiPgG8w3DXDiDM6E2w5ICZMzjwTacZK0Cc=; b=CFSkNGplPsX/5uytPgxyg29iiUmyE6XjtWaLe2cd5d2PyBuSFgBVPJbqMGjqI4uzj8 IEbXi8EL+EQJ9YsalJX0GX4pgV2QFxbPrZVBIAjqQZWeJVUbLP9IlAd76sP6XxMK0cUS 29Lyul+Hk7EMlZ3hqwTKha0eIwlaNQMfkWZYULi4ygLxLz/dnlpWQXOBWSL9KpbSwxoN VAWGmUhRNLcHqr5Y9XWuZMhqB2IyIWHkFDhPmB4dDJ8gySGEmVVl+UD/6ueqIVRkkLcD +abFGN9ki1NWAePZK8VktGu+D0t7HOPbmUMaN+9wSly1qQJiRBagfUwxfYiUvGfhwDnu 3UTw== X-Gm-Message-State: AIVw111SeQB2BrnxOONphagcuJ+IWTK9S4isblbFgmY7EuFqZWYIYU6e 5DD1oyjQF3a3Nw== X-Received: by 10.84.137.129 with SMTP id 1mr16773926pln.37.1499181885211; Tue, 04 Jul 2017 08:24:45 -0700 (PDT) Received: from lynnl.yet ([112.64.217.95]) by smtp.gmail.com with ESMTPSA id t4sm25194866pgs.22.2017.07.04.08.24.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Jul 2017 08:24:44 -0700 (PDT) From: Lynn Lei X-Google-Original-From: Lynn Lei Date: Tue, 4 Jul 2017 23:24:38 +0800 To: sudipm.mukherjee@gmail.com Cc: teddy.wang@siliconmotion.com, b.zolnierkie@samsung.com, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] video: fbdev: sm712fb.c: fixed constant-left comparison warning Message-ID: <20170704152438.GA30443@lynnl.yet> MIME-Version: 1.0 Content-Disposition: inline Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/video/fbdev/sm712fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;