Commit f84b5414 authored by Hongchen Zhang's avatar Hongchen Zhang
Browse files

drm/inspur: fix compile warning

LoongArch inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I84IWW



------------------------------------------

Fix the following warning of inspur BMC drm driver:

drivers/gpu/drm/inspur/inspur_drm_drv.c: In function ‘inspur_pci_probe’:
drivers/gpu/drm/inspur/inspur_drm_drv.c:379:29: warning: unused variable ‘priv’ [-Wunused-variable]

379 | struct inspur_drm_private *priv;

| ^~~~

Fixes: b9d65551 ("drm: add inspur drm driver support")
Signed-off-by: default avatarHongchen Zhang <zhanghongchen@loongson.cn>
parent f1cb8ef9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -376,7 +376,7 @@ static int inspur_pci_probe(struct pci_dev *pdev,
			   const struct pci_device_id *ent)
{
	int ret = 0;
	struct inspur_drm_private *priv;
	struct inspur_drm_private __maybe_unused *priv;
	struct drm_device *dev;

	inspur_remove_framebuffers(pdev);