Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp974989ybg; Wed, 29 Jul 2020 02:33:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7xbWwWCZHBjG947tlxwEICxz9eEYbq0vvouqIqLYiB+tyxLKdczWDBLtUNULWUxgVtYvS X-Received: by 2002:a05:6402:cb:: with SMTP id i11mr17396886edu.372.1596015228528; Wed, 29 Jul 2020 02:33:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596015228; cv=none; d=google.com; s=arc-20160816; b=cu/uJjLfSjpuVWsm6uQVdF/gCvDr/oUxO7XmTFTuOq+om23i2tO925UxciKMRTFkJa I9cR3lxAVQH0KV5sk42zLuyZL252FmziDNgPTKK5v69zfMwvNOuWmgGaMxJNqba11O5o CuM3sRrWlcav7LAkKuiGWRTCr7VEYR74Uk/ydEqY1WPLExXyySUcVKYPlU9RJ9Yl70YS DmdOjl81gu/75diQIUId/ClzxhTIqgjDnhnh4sm+wqqLrKdYES/2q9HUtlJDUm0eD0wq n8TRkRpD7uietbT9f5nrpgOQnHY1KbtYCo70wETgT2jYNKwB/VWu9rVg6405U9nVEeBM VVSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=1PWjEF8cxpFtfe6LTwcyWTT3epDY4Oxt2uYqqJp7glc=; b=AnHuXnVpldug1x+SJL9JdVJBrdNBTPjqh/DUK01tREwv/qmr0RS/VgqDn0Oxo30Alo 8KWwkbyyjZKxoBvIL5mje45d/kRTd0+saZ6BzmVsXwsuH+TaXzkuuBFEd9GpjOz/Xtho 6eI/SLQUT4+vFhMZ31O3KLfxpy1I7oemheY8cXTq4yK/Q0qeNOQCYyRJOo0w57jpEUqW micJi3KFCz1SelC1bAotCRJWTQPPefxVRKBzOm9eJ8bJ3oNXajnavArUMIZJ3zUV9xc8 meXyVZKY5FtrWDsncGAXw70VsZTE+j9Z3929ZdYOdItKWbrVysfvCx2drT3m6jC45P8I uNXg== 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 ec22si801307ejb.23.2020.07.29.02.33.26; Wed, 29 Jul 2020 02:33:48 -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 S1728032AbgG2JdH (ORCPT + 99 others); Wed, 29 Jul 2020 05:33:07 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:2997 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726536AbgG2JdH (ORCPT ); Wed, 29 Jul 2020 05:33:07 -0400 Received: from DGGEMM403-HUB.china.huawei.com (unknown [172.30.72.56]) by Forcepoint Email with ESMTP id 69CD65530AF83CA3DC8E; Wed, 29 Jul 2020 17:33:04 +0800 (CST) Received: from dggeme761-chm.china.huawei.com (10.3.19.107) by DGGEMM403-HUB.china.huawei.com (10.3.20.211) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 29 Jul 2020 17:33:03 +0800 Received: from dggeme759-chm.china.huawei.com (10.3.19.105) by dggeme761-chm.china.huawei.com (10.3.19.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1913.5; Wed, 29 Jul 2020 17:33:04 +0800 Received: from dggeme759-chm.china.huawei.com ([10.7.64.73]) by dggeme759-chm.china.huawei.com ([10.7.64.73]) with mapi id 15.01.1913.007; Wed, 29 Jul 2020 17:33:03 +0800 From: "tiantao (H)" To: Thomas Zimmermann , "airlied@linux.ie" , "daniel@ffwll.ch" , "kraxel@redhat.com" , "alexander.deucher@amd.com" , "tglx@linutronix.de" , "dri-devel@lists.freedesktop.org" , "xinliang.liu@linaro.org" , "linux-kernel@vger.kernel.org" CC: Linuxarm Subject: =?utf-8?B?562U5aSNOiBbUEFUQ0ggdjNdIGRybS9oaXNpbGljb246IEZpeGVkIHRoZSB3?= =?utf-8?Q?arning:_Assignment_of_0/1_to_bool_variable?= Thread-Topic: [PATCH v3] drm/hisilicon: Fixed the warning: Assignment of 0/1 to bool variable Thread-Index: AQHWZYMn+f7W3RNSC0mml/fqdJgmo6keSxtA Date: Wed, 29 Jul 2020 09:33:03 +0000 Message-ID: References: <1595940907-17874-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.57.60.129] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgVGhvbWFzOg0KDQoJVGhhbmsgeW91IHZlcnkgbXVjaCAuDQoNCkJlc3QNCg0KLS0tLS3pgq7k u7bljp/ku7YtLS0tLQ0K5Y+R5Lu25Lq6OiBUaG9tYXMgWmltbWVybWFubiBbbWFpbHRvOnR6aW1t ZXJtYW5uQHN1c2UuZGVdIA0K5Y+R6YCB5pe26Ze0OiAyMDIw5bm0N+aciDI55pelIDE2OjM1DQrm lLbku7bkuro6IHRpYW50YW8gKEgpIDx0aWFudGFvNkBoaXNpbGljb24uY29tPjsgYWlybGllZEBs aW51eC5pZTsgZGFuaWVsQGZmd2xsLmNoOyBrcmF4ZWxAcmVkaGF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