Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp413579ybz; Wed, 22 Apr 2020 00:21:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKVH7rHM01FCK6pI09HeCc2E6kHom14fSTq0rnRqt+xuexknxZI8qoPp3Ga3/CGxvu7rCCi X-Received: by 2002:a17:906:1e51:: with SMTP id i17mr17151182ejj.336.1587540065347; Wed, 22 Apr 2020 00:21:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587540065; cv=none; d=google.com; s=arc-20160816; b=CrQ2g7nvM+GCtBWDx3Bh/mv11+yA141RJk7naS9lGwOL90F4Dtm+jVtT6Dtg37MVCE fFnxcagR9CN+A02FG3UDeUnKKMA8knNeGtusMrRlKZ0rLtTWtYWhDreO0JLNlnOhQzJK HcpzwMs9TZNAQ5gMpp9WCKNB5aNvH81hyrQ8sLBBANiAjL/NuuC23iUBg4gnagHEEwdc 9cgPJljWmAfOzG+9BBj41jufkWkOll0bDADpxS7Fylc/zhl9dyGar1tmnHqTDNndffP0 rki84qjOvC4v/MDqHqZ8DmCYRhYhj5uOMfKFwjGcePqqTwcikEIWWKU97WuvWFFcWxHs 8bgA== 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=VJv3QRtgGkIDMCmoPRoBB6CjSAVQMNc+BpqlgYqwwpc=; b=qnUE7uc+2EUi9k8mGqY+B9z85cy08h+87h2h8K/Mt0FJqnojZtoBT2e6rMbwhtRDcx W3aj36nkoasmvQeRG4h3+JLMblxykRjk341gdZFW06K77YeWQahwy1i/Oti/RfmyCTc/ RQG6ZS3oyE1cFqx/JdY4gnuphDIDlGNhvY6s+XawAw1EMfd37uf5CSr7MIXlPo0QhldY Ur+SI8FVwIYDhV8QpFVXCRibAdfDIVQ0DVkIkK2qG2l6dCjiPaPzSKjrkoTibTVt+LwM cUn5TpNDQOfddgtW/ODZSa+ZXvizXVF/XR/HTL6A1wWAdqcZIbgeXmUnqkK9t+VD6qP/ ggEw== 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 l19si2846949ejq.122.2020.04.22.00.20.42; Wed, 22 Apr 2020 00:21:05 -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 S1726492AbgDVHTP (ORCPT + 99 others); Wed, 22 Apr 2020 03:19:15 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2870 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725811AbgDVHTP (ORCPT ); Wed, 22 Apr 2020 03:19:15 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4199B198215F3CCD6BE7; Wed, 22 Apr 2020 15:19:13 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Wed, 22 Apr 2020 15:19:07 +0800 From: Jason Yan To: , , , , , Subject: [PATCH] video: udlfb: use true,false for bool variables Date: Wed, 22 Apr 2020 15:18:36 +0800 Message-ID: <20200422071836.49123-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/udlfb.c:67:12-19: WARNING: Assignment of 0/1 to bool variable drivers/video/fbdev/udlfb.c:68:12-20: WARNING: Assignment of 0/1 to bool variable drivers/video/fbdev/udlfb.c:69:12-18: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/video/fbdev/udlfb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c index 07905d385949..5b014b479f83 100644 --- a/drivers/video/fbdev/udlfb.c +++ b/drivers/video/fbdev/udlfb.c @@ -64,9 +64,9 @@ static const struct usb_device_id id_table[] = { MODULE_DEVICE_TABLE(usb, id_table); /* module options */ -static bool console = 1; /* Allow fbcon to open framebuffer */ -static bool fb_defio = 1; /* Detect mmap writes using page faults */ -static bool shadow = 1; /* Optionally disable shadow framebuffer */ +static bool console = true; /* Allow fbcon to open framebuffer */ +static bool fb_defio = true; /* Detect mmap writes using page faults */ +static bool shadow = true; /* Optionally disable shadow framebuffer */ static int pixel_limit; /* Optionally force a pixel resolution limit */ struct dlfb_deferred_free { -- 2.21.1