[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1593694455-31268-1-git-send-email-tiantao6@hisilicon.com>
Date: Thu, 2 Jul 2020 20:54:15 +0800
From: Tian Tao <tiantao6@...ilicon.com>
To: <puck.chen@...ilicon.com>, <airlied@...ux.ie>, <daniel@...ll.ch>,
<tzimmermann@...e.de>, <kraxel@...hat.com>,
<alexander.deucher@....com>, <tglx@...utronix.de>,
<dri-devel@...ts.freedesktop.org>, <xinliang.liu@...aro.org>,
<linux-kernel@...r.kernel.org>
CC: <linuxarm@...wei.com>
Subject: [PATCH] drm/hisilicon: Fixed the warning: Assignment of 0/1 to bool variable
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 <tiantao6@...ilicon.com>
---
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
Powered by blists - more mailing lists