Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1451407ybt; Thu, 2 Jul 2020 05:59:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHoln1CpFU/wNTFr6156YX5dk/AqRLI14rxWt03q+UZ35D6NuONOlj3MnkeG6MHNFiTzkF X-Received: by 2002:a17:906:38da:: with SMTP id r26mr26683866ejd.120.1593694755369; Thu, 02 Jul 2020 05:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593694755; cv=none; d=google.com; s=arc-20160816; b=EuYkOVpindtSF9qWeh2wPJeB/CV/9+jeLTaQBtzaXnoxqEGc3PUmz+MEX0dJDZDGAF VOj5TjXEuB7UWiDQxx01jXBPLl7zXTzyX3CIi2exNnOyZDpYzdu5FUmQ7Ah+8s6Zf1Qp pupqsFX3n9UdUYuNSu2Gu3Y3yTYqapwOI00WDLiCnBgmM47wl3fds5vbgLUF/bDpe6aV Ze0XNE+dMr8skLpIkVY5RzRW16b+vlnliCIIwjS9TDjrv+2qoJUOXSxH2bFtY8sxY5Cz D3UOURMCe4XtUAzuBCvI81aizKhA/wF+TRYiMGgGNqPm/oa/x7NBKna1KxQSpCIBBKZK BvoA== 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=1gdVbOliOP7jAybkjo1jEMetaw25gyVLwU9tGJiN0+o=; b=l8LWVpRKB4KAMJnrXCa2t1nAtKs7NzwXZFuwKeTibjkVp17CenlWgJTS+THNdoF9nn GtnEv9KJMfkHiUWpHsb5TVm0A4DAY/fuVsDvcx2/kgF/vBGIkdFRjozmVStx2fvOZr6g wMxXYWQ6Sns6pGgJKzZVQTxqdn3bcXsq+b/z8dvE4DJkqBKNbbNvcYdEY+i2IaiWXWWi DnNl03NqVt8iVai6UfaXYj6xQf3PeBGuTynBoIC8v1YcgLVrmej0XNCOdIlmud0rsC0s Gvukqb9w+xbaxspeaaNH6VY+rGQMkXdHANa6z8+56VKr2hOlu9MGXpI28B7hNlNPYYnP uv/Q== 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 k13si5573114edh.362.2020.07.02.05.58.52; Thu, 02 Jul 2020 05:59:15 -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 S1729112AbgGBM4B (ORCPT + 99 others); Thu, 2 Jul 2020 08:56:01 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:43564 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728661AbgGBM4B (ORCPT ); Thu, 2 Jul 2020 08:56:01 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B27037EA7A15A2B43017; Thu, 2 Jul 2020 20:55:59 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Thu, 2 Jul 2020 20:55:50 +0800 From: Tian Tao To: , , , , , , , , , CC: Subject: [PATCH] drm/hisilicon: Fixed the warning: Assignment of 0/1 to bool variable Date: Thu, 2 Jul 2020 20:54:15 +0800 Message-ID: <1593694455-31268-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fixed the following warning: hibmc_drm_drv.c:296:1-18:WARNING: Assignment of 0/1 to bool variable. hibmc_drm_drv.c:301:2-19: WARNING: Assignment of 0/1 to bool variable. Signed-off-by: Tian Tao --- drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c index 249c298..2fc0c97 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c @@ -294,12 +294,12 @@ static int hibmc_load(struct drm_device *dev) goto err; } - priv->msi_enabled = 0; + priv->msi_enabled = false; ret = pci_enable_msi(dev->pdev); if (ret) { DRM_WARN("enabling MSI failed: %d\n", ret); } else { - priv->msi_enabled = 1; + priv->msi_enabled = true; ret = drm_irq_install(dev, dev->pdev->irq); if (ret) DRM_WARN("install irq failed: %d\n", ret); -- 2.7.4