答复: [PATCH] drm/hisilicon/hibmc: Remove variable 'priv' from hibmc_unload()
tiantao (H)
tiantao6 at hisilicon.com
Wed Jul 21 14:18:12 UTC 2021
Reviewed-by: Tian Tao <tiantao6 at hisilicon.com>
-----邮件原件-----
发件人: Thomas Zimmermann [mailto:tzimmermann at suse.de]
发送时间: 2021年7月21日 21:17
收件人: xinliang.liu at linaro.org; tiantao (H) <tiantao6 at hisilicon.com>; john.stultz at linaro.org; kongxinwei (A) <kong.kongxinwei at hisilicon.com>; Chenfeng (puck) <puck.chen at hisilicon.com>; airlied at linux.ie; daniel at ffwll.ch; maxime at cerno.tech; sam at ravnborg.org
抄送: dri-devel at lists.freedesktop.org; Thomas Zimmermann <tzimmermann at suse.de>; Dave Airlie <airlied at gmail.com>; Daniel Vetter <daniel.vetter at ffwll.ch>
主题: [PATCH] drm/hisilicon/hibmc: Remove variable 'priv' from hibmc_unload()
The variable 'priv' got introduced in commit 39a364a19e03
("drm/hisilicon/hibmc: Convert to Linux IRQ interfaces") by accident.
It's unused; remove it. Fixes a compiler warning.
Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
Fixes: 39a364a19e03 ("drm/hisilicon/hibmc: Convert to Linux IRQ interfaces")
Reported-by: Dave Airlie <airlied at gmail.com>
Cc: Thomas Zimmermann <tzimmermann at suse.de>
Cc: Tian Tao <tiantao6 at hisilicon.com>
Cc: Maxime Ripard <maxime at cerno.tech>
Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
Cc: Sam Ravnborg <sam at ravnborg.org>
---
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
index f73a8e0ea12e..610fc8e135f9 100644
--- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
+++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c
@@ -249,7 +249,6 @@ static int hibmc_hw_init(struct hibmc_drm_private *priv)
static int hibmc_unload(struct drm_device *dev) {
- struct hibmc_drm_private *priv = to_hibmc_drm_private(dev);
struct pci_dev *pdev = to_pci_dev(dev->dev);
drm_atomic_helper_shutdown(dev);
--
2.32.0
More information about the dri-devel
mailing list