Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp413434ybz; Wed, 22 Apr 2020 00:20:52 -0700 (PDT) X-Google-Smtp-Source: APiQypKix+A9xLHsQ0t9nj0AVrYi3k34kSl+s+BZBw3z3ug7WdPZwhCzC8TioT6UqRTZS/rULMl1 X-Received: by 2002:a17:906:ad9a:: with SMTP id la26mr24666352ejb.128.1587540052599; Wed, 22 Apr 2020 00:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587540052; cv=none; d=google.com; s=arc-20160816; b=R6D/qcQ00OIzAnF8rLCFPSp08svnryNaWxDNpIy3BBaASiBcwa/O+NwcMtnO7cJKYr EqnreIvU3aSfhMoQbshJ0JoE3rZvk41cw1qA0qb8M0KxPQpr1d8PQbZ4/J4rqf+YAhIq 54XSZLH1EY8albNZRs3CobmH0uM+uEY1oC6dWfLGu+E+nkQZvWKCpNhpZJQAAlQZKOP7 Rx2JtoC0fP5BwnN5oUxSBng5G6YPhEqvRq3DFPApE5xtzkeKq/C7LkA0l5d+aEFjJHR4 ws4H6RubmW/iOgCr2ekbHQF8J8+fT/yyVkjWrtrjf2Cx6sNX//db+tml+tVt9GYeyjak vr+g== 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:to:from; bh=UmxeTjBOxe6ch0Qx47BOJQX70ozHFP6nd1gmYeKnSxs=; b=ryTewnFtgabmE3eTgAes5H2dFuP9HYTnpv4UYxxKku3uwLIx1faM4a0B40TTvzC79X W5PFUuMtay6n0wYNP41+W0NNCpEk8dUi47DZG0Eef3CSXFlgDy1QO+WwJUXnc+IloxY6 +BrQa/UWjONpXWMiuhtDJYNGwHb7DPhJaaoD0l4cUPntaNWDLOaoq5KXUD7h3Kf/9OXx Kz0/orPY2PK/0B/2bufh3JCXjpIAAIXe+xGWCoZEvoSKp7YbcisiT3+YTwuZ3bbF3ezd 9Ou0W3QFAdZKJx4m8PGSbWhSYdTR51Y/lr6C1+VhNJeD1xaHH6qrzMp6R+Hw1VBZb81D 0d/Q== 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 m29si2973747eda.592.2020.04.22.00.20.29; Wed, 22 Apr 2020 00:20:52 -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 S1726467AbgDVHTJ (ORCPT + 99 others); Wed, 22 Apr 2020 03:19:09 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:2831 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726442AbgDVHTJ (ORCPT ); Wed, 22 Apr 2020 03:19:09 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 84F806D9E9DBBCAC755F; Wed, 22 Apr 2020 15:19:07 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Wed, 22 Apr 2020 15:18:57 +0800 From: Jason Yan To: , , , , , Subject: [PATCH] video: fbdev: i810: use true,false for bool variables Date: Wed, 22 Apr 2020 15:18:26 +0800 Message-ID: <20200422071826.49038-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/i810/i810_main.c:1969:3-7: WARNING: Assignment of 0/1 to bool variable drivers/video/fbdev/i810/i810_main.c:1971:3-8: WARNING: Assignment of 0/1 to bool variable drivers/video/fbdev/i810/i810_main.c:1973:3-9: WARNING: Assignment of 0/1 to bool variable drivers/video/fbdev/i810/i810_main.c:1975:3-7: WARNING: Assignment of 0/1 to bool variable drivers/video/fbdev/i810/i810_main.c:2001:3-9: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/video/fbdev/i810/i810_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/video/fbdev/i810/i810_main.c b/drivers/video/fbdev/i810/i810_main.c index aa7583d963ac..13bbf7fe13bf 100644 --- a/drivers/video/fbdev/i810/i810_main.c +++ b/drivers/video/fbdev/i810/i810_main.c @@ -1966,13 +1966,13 @@ static int i810fb_setup(char *options) while ((this_opt = strsep(&options, ",")) != NULL) { if (!strncmp(this_opt, "mtrr", 4)) - mtrr = 1; + mtrr = true; else if (!strncmp(this_opt, "accel", 5)) - accel = 1; + accel = true; else if (!strncmp(this_opt, "extvga", 6)) - extvga = 1; + extvga = true; else if (!strncmp(this_opt, "sync", 4)) - sync = 1; + sync = true; else if (!strncmp(this_opt, "vram:", 5)) vram = (simple_strtoul(this_opt+5, NULL, 0)); else if (!strncmp(this_opt, "voffset:", 8)) @@ -1998,7 +1998,7 @@ static int i810fb_setup(char *options) else if (!strncmp(this_opt, "vsync2:", 7)) vsync2 = simple_strtoul(this_opt+7, NULL, 0); else if (!strncmp(this_opt, "dcolor", 6)) - dcolor = 1; + dcolor = true; else if (!strncmp(this_opt, "ddc3", 4)) ddc3 = true; else -- 2.21.1