Received: by 10.223.176.5 with SMTP id f5csp4126956wra; Tue, 30 Jan 2018 02:31:16 -0800 (PST) X-Google-Smtp-Source: AH8x226G+v1Z8lw/+9M4GJ9WGQOJfE1fPhzuThee1IHRot+EsigiPiQdBE8fFk5HAd3yfC0u0gzc X-Received: by 10.101.99.131 with SMTP id h3mr21359146pgv.381.1517308275973; Tue, 30 Jan 2018 02:31:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517308275; cv=none; d=google.com; s=arc-20160816; b=Su6OAjabtvP+j/mY2O8Bgwcf8J0I72gqv2uXba7hU3xhSSn7dLjT4dx2K299ByXYlZ H+vXHRd2Ip9VyJn0bikEnKTX6ivELzKLCrHbbDJ5gCJ2i79hvY0zZIfqKoom90BCFDG1 OQ5JGS3FC3Zpv+0YE6I3Hx6z1iBbCZzMezEoCPKya4TcjwRXuYbCgJtU/oliUgcb7azm uCCcic9GxsBM5mHo2wi5ky8Ogffo8E503OQ0f1A8KIEyv+Zp9q5ug6Qb1+3eIVU90bJ+ 9yM/WN4GbbUuY0pwGOo82Po/C9zF5SFMzu7vRxLN/90EzYyX1Wf974nRUyul90zqX3TH e7Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=m4vGJij5JxdmYZfiTUHMtzPY9yZKezWKwacpaK4U3q8=; b=D1YPahYrJWN1rRfjkCdzQZBTXjjH1ThqJepFXmQoqeP4L8eeOIAEuYFzyPRa767hSL 2edxgOoYi15aX66MBTx6HzLzzfGZFDw4FNOS/Cr//g5bVEUy1/ltwAt2tlZjBGGrwsl+ amoLpucS9zSGmHlrgRsw21LYKNF/U7iRuXUrUwPxdNWL1qArOw4pggDHTuvsV9M2WDT4 MylH5E1CCwQzAhW/FC7E+k4VhnS0Ysb1/bpqSvkVCbQPEdkPPtUYEkiipr7hBSDneRTl r+ZCpzPGoHy3WQv09X8a6lEQDgUX7I7hdTGS2nrRvX1PgYt7PN/qveyp1CprDRevx93l sKHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4si13974709pfe.48.2018.01.30.02.31.02; Tue, 30 Jan 2018 02:31:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751927AbeA3K3r (ORCPT + 99 others); Tue, 30 Jan 2018 05:29:47 -0500 Received: from gateway22.websitewelcome.com ([192.185.46.234]:35259 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751360AbeA3K3p (ORCPT ); Tue, 30 Jan 2018 05:29:45 -0500 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway22.websitewelcome.com (Postfix) with ESMTP id CF43311495 for ; Tue, 30 Jan 2018 04:05:30 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id gSnCeAF6FmzEzgSnCeEJbu; Tue, 30 Jan 2018 04:05:30 -0600 Received: from [189.152.201.65] (port=39924 helo=training) by gator4166.hostgator.com with esmtpa (Exim 4.89_1) (envelope-from ) id 1egSnC-001c6V-D5; Tue, 30 Jan 2018 04:05:30 -0600 Date: Tue, 30 Jan 2018 04:05:28 -0600 From: "Gustavo A. R. Silva" To: Daniel Vetter , Gustavo Padovan , Sean Paul , David Airlie Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH v2] drm/edid: use true and false for boolean values Message-ID: <20180130100528.GA7154@training> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.152.201.65 X-Source-L: No X-Exim-ID: 1egSnC-001c6V-D5 X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (training) [189.152.201.65]:39924 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 13 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Assign true or false to boolean variables instead of an integer value. This issue was detected with the help of Coccinelle. Signed-off-by: Gustavo A. R. Silva --- Changes in v2: - Use true for boolean value in add_detailed_mode as suggested by Daniel Vetter. - Update subject. drivers/gpu/drm/drm_edid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index ddd5379..b1cb262 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -2767,7 +2767,7 @@ do_detailed_mode(struct detailed_timing *timing, void *c) drm_mode_probed_add(closure->connector, newmode); closure->modes++; - closure->preferred = 0; + closure->preferred = false; } } @@ -2784,7 +2784,7 @@ add_detailed_modes(struct drm_connector *connector, struct edid *edid, struct detailed_mode_closure closure = { .connector = connector, .edid = edid, - .preferred = 1, + .preferred = true, .quirks = quirks, }; -- 2.7.4