Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp27053ybj; Wed, 6 May 2020 10:45:47 -0700 (PDT) X-Google-Smtp-Source: APiQypIRshGwAT0uLjUMeDe7ocf59zlszNyy5D7Qdwuu710l7f5Y7knxUcpsIc6Y6q9iDSDiMZb/ X-Received: by 2002:a17:906:f90e:: with SMTP id lc14mr8197432ejb.156.1588787146950; Wed, 06 May 2020 10:45:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588787146; cv=none; d=google.com; s=arc-20160816; b=QJE5nfmd/u3exTYfq0+iG4TTm6Xqaw7yPzelVvq7UQABVZgR7THVraENlk9FfahIlW XiK1C4sLlJI7grGwjq81ucOFgUYQ50wD/eR1sjnH+QWjzW1MJmbBwIdK/FWYgVkiFDGK U3al23BmiGfT4Q+9mccVV7OVO+4PoLrjg7TkjCmZ+2Cuan6lyzKwG6wM8kh3PIHt8U72 qbvLfVi/d7W3flVxOP3hA+qxgxPSKUwPfoES486q3OfsKT0C620rsicZh7OeD7DdUreG Rj6rBrLlBT+So403g/tssUnGM5pj/DP121vi2YKX0KZmJMLiD1hM4qk4RvQlk9EuOB2i og6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lFkJESSMpDJ+hXrviV9gFT3AECHwXuFj8HTXDy9bDxk=; b=zyLn0UGwr7ubOPgYWTW4Ch8kRIGvJrumXwZb17b2eR60Lb+McmGTazuBBa8G1/pEaM XMyxdMve4+wRdHwRsscvPdkRCk1aHXxYl8u+Rnv8bu9WvkJdPsHA7eZGw6EMnnnPVLub C8VHZ3jla5f5/JNn1YABtD6XEOLSmUBpKsN/737v3bd3Jbt0+qWKhiTcGSwDKCr5zCub IS+Y5zTPI8vaZzMahWRUabfJjSpdy7ETOXfMHC32mtnWCAsc/mAipBfDwNZojsIp79pt R2Ba0EBR6k/4kOai393OwoijBxk0QVnza9597QkHRMpkSygrUVHXrT+Rw2LOxig+csKt +qow== 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 f6si1376680edw.325.2020.05.06.10.45.24; Wed, 06 May 2020 10:45:46 -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 S1729425AbgEFRlD (ORCPT + 99 others); Wed, 6 May 2020 13:41:03 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:37872 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728718AbgEFRlC (ORCPT ); Wed, 6 May 2020 13:41:02 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 6599A803E8; Wed, 6 May 2020 19:40:59 +0200 (CEST) Date: Wed, 6 May 2020 19:40:52 +0200 From: Sam Ravnborg To: Jason Yan Cc: adaplas@gmail.com, b.zolnierkie@samsung.com, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] video: fbdev: i810: use true,false for bool variables Message-ID: <20200506174052.GF19296@ravnborg.org> References: <20200422071826.49038-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200422071826.49038-1-yanaijie@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=MOBOZvRl c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=kj9zAlcOel0A:10 a=i0EeH86SAAAA:8 a=e5mUnYsNAAAA:8 a=t5bY3fDbLEjA0SOcjXMA:9 a=CjuIK1q_8ugA:10 a=Vxmtnl_E_bksehYqCbjh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 22, 2020 at 03:18:26PM +0800, Jason Yan wrote: > 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 Thanks. I have pushed this and your other three patches to drm-misc-next. They will show up in the mainline kernel in the next merge window. Sam > --- > 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 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel