Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp414312ybz; Wed, 22 Apr 2020 00:22:10 -0700 (PDT) X-Google-Smtp-Source: APiQypKMzQAzYrKJQZ5ROEgwrK0pMStINwit8Yle1PCJ0L8b34VPaK6HNTcrWXU5z1pIY6w2Efcp X-Received: by 2002:a05:6402:752:: with SMTP id p18mr16683524edy.261.1587540130556; Wed, 22 Apr 2020 00:22:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587540130; cv=none; d=google.com; s=arc-20160816; b=jrSjyRhK3dwyokwCF3qil/MyDzx/ugm62vtmIVWlafJ+Ya3SubRfqqNBS/7ZeofuQo 78UjDLO7/sdzrRwD6AR59JYngCEj8jrKG4z87U51UcgMgQy0qQfsHr5UCBj1Pa5E8mKq QDMlJOCR5+vfVC9voBT8p6fBWdlzDHccFGaTRkTflxw6ini8j1hIQfPZaNV7D27cQox0 UTCcfyF442aygTIiQOWbeyBxyLnPL+DmIKyb9kZofUKhtFH7fQ5tqnlxs2NlbJJ3sdc7 xWu4e2+Mnhtwn5BczSWRtrBgp62ItJlmkY6DoQSWXbyIrWoU1p6Z3saHblWtFnUnrGmI 13Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=8JMngeRG+etmdQkbr1DLIBjCJA2y0+5soOQZeKBW/Do=; b=fsEjO8vKwSvufO3airLFIEhmjywGIl81OHYs2953dV0/OVxzlTuBP/nYwrPVuMq8WT 4KezWNfZuOITJJA5vE38/F6ZS0by6E2f3GK/jOOTNhz59229FikP4Vuke9lQK4uN2fJE BUfFKqYHpIKnPVfiu5EbUfz2aWzYKWbV7lKUGuyK32NJJVkXTgJw3P4o8k12Zp8WcWqm pIPfFVQG0K/3ACXHseJ1Ll6AImToeyb9kIiJO3VX3/37A6C+J61dXQrNvtNaOXMfxOGP HrIfSt0JfMKxVFG7UU6GmP0/QAJG81NNiE+/hNnvQGZ04TKJCJ2rOf9bHLIk5XI8QGag rtmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k17si3028220ejj.219.2020.04.22.00.21.47; Wed, 22 Apr 2020 00:22:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726499AbgDVHTj (ORCPT + 99 others); Wed, 22 Apr 2020 03:19:39 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2832 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725842AbgDVHTj (ORCPT ); Wed, 22 Apr 2020 03:19:39 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6001DDB4B78D23B552C1; Wed, 22 Apr 2020 15:19:34 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Wed, 22 Apr 2020 15:19:25 +0800 From: Jason Yan To: , , , , , CC: Jason Yan Subject: [PATCH] fbdev: aty: use true,false for bool variables in atyfb_base.c Date: Wed, 22 Apr 2020 15:18:54 +0800 Message-ID: <20200422071854.513-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: drivers/video/fbdev/aty/atyfb_base.c:3822:3-10: WARNING: Assignment of 0/1 to bool variable drivers/video/fbdev/aty/atyfb_base.c:3824:3-9: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/video/fbdev/aty/atyfb_base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/aty/atyfb_base.c b/drivers/video/fbdev/aty/atyfb_base.c index 49d192869cf5..b0ac895e5ac9 100644 --- a/drivers/video/fbdev/aty/atyfb_base.c +++ b/drivers/video/fbdev/aty/atyfb_base.c @@ -3819,9 +3819,9 @@ static int __init atyfb_setup(char *options) while ((this_opt = strsep(&options, ",")) != NULL) { if (!strncmp(this_opt, "noaccel", 7)) { - noaccel = 1; + noaccel = true; } else if (!strncmp(this_opt, "nomtrr", 6)) { - nomtrr = 1; + nomtrr = true; } else if (!strncmp(this_opt, "vram:", 5)) vram = simple_strtoul(this_opt + 5, NULL, 0); else if (!strncmp(this_opt, "pll:", 4)) -- 2.21.1