Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7334972ybl; Tue, 24 Dec 2019 00:15:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxw4iUaAccJ9/psKHIFRN7DNU/I/dJee+tuVgY69/q6/MWMZ7VyuCxLcT3YfTzk7M7X7Bho X-Received: by 2002:a9d:69ce:: with SMTP id v14mr38481786oto.248.1577175306772; Tue, 24 Dec 2019 00:15:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577175306; cv=none; d=google.com; s=arc-20160816; b=T3vnVd/vp1BXt9U/LUxWS/d7GUDzOx67lx2myl5WriPMKQqwFPzO1PgReb9oWHU/Vy mTeXzn6S3tioB8C8yZuzTsPawmT+mvb0ZRWThSlwhxLSJmkzH+JqwZyvI2RlEnfIKBsA H1e27jFQmw/o/XAtiaU/gttlBMU3D+3DJj8MEhXtM52OyEh3N5xVZKLo7GY6GC1xFUwH GHre4JJFG84E48iPbiOnRNln0BIDK4t92q//hES2cLV6uiAJPVTWQfUkP81+JtWHBEv5 pahxCrntiXCgLfjRj5GX5IkWeBK4uUJJJVnLz5xdohWzuO2Esey5WU6PzStnUdCaWYoM jMAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=9VAvaDKsM15kIHKJY9gQoDbS+eIsWiXG7sapinLbkaA=; b=0nYeUZCxhr2RoH0yGA+8D75hyD2xcyfSS5xqbS7jsGWsSJvVy4oZYms2aKPFhRnoYD xCuPm1oZhvtayJpmsocjyyF4yAz9l/ssjgnYietxMrNtQVyIRzJpDDW40Cwu/EBsHRaq 3ZTPmtkTj4od1aa/tlcv6Oi4rmYzeVR337S/b5vj/2OAIUk/9YvFIio1B46xAwPv4jUb spVVCFtbreRjIGQF8l4rLtzirx7b3EhEU9cfxDIEtAc3cJHCLn60VjJT12LB+8dv3+Jl A7AkN5gxuEeCZc/Lva4YmAr49cMKt5jxdJ5RVHV2mPG9qDTUx9wFp5FL36tJkuoM9+nd YRRg== 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 t125si4671708oih.183.2019.12.24.00.14.54; Tue, 24 Dec 2019 00:15:06 -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 S1726154AbfLXIN4 (ORCPT + 99 others); Tue, 24 Dec 2019 03:13:56 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8169 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726043AbfLXIN4 (ORCPT ); Tue, 24 Dec 2019 03:13:56 -0500 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id EFF3C8C535982F2436B8; Tue, 24 Dec 2019 16:13:54 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Tue, 24 Dec 2019 16:13:49 +0800 From: Ma Feng To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter CC: , , Subject: [PATCH 2/3] drm/i915/dp: use true,false for bool variable in intel_dp.c Date: Tue, 24 Dec 2019 16:14:41 +0800 Message-ID: <1577175281-93306-1-git-send-email-mafeng.ma@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes coccicheck warning: drivers/gpu/drm/i915/display/intel_dp.c:4950:1-33: WARNING: Assignment of 0/1 to bool variable drivers/gpu/drm/i915/display/intel_dp.c:4906:1-33: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: Ma Feng --- drivers/gpu/drm/i915/display/intel_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 2f31d22..4fd0fcd 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -4903,7 +4903,7 @@ static u8 intel_dp_autotest_video_pattern(struct intel_dp *intel_dp) intel_dp->compliance.test_data.hdisplay = be16_to_cpu(h_width); intel_dp->compliance.test_data.vdisplay = be16_to_cpu(v_height); /* Set test active flag here so userspace doesn't interrupt things */ - intel_dp->compliance.test_active = 1; + intel_dp->compliance.test_active = true; return DP_TEST_ACK; } @@ -4947,7 +4947,7 @@ static u8 intel_dp_autotest_edid(struct intel_dp *intel_dp) } /* Set test active flag here so userspace doesn't interrupt things */ - intel_dp->compliance.test_active = 1; + intel_dp->compliance.test_active = true; return test_result; } -- 2.6.2