Commit 09b20988 authored by Ye Bin's avatar Ye Bin Committed by Thomas Zimmermann

drm/nouveau: remove set but not used variable ‘pdev’ in nouveau_bios_init

Fix follow warning:
drivers/gpu/drm/nouveau/nouveau_bios.c:2086:18: warning: variable ‘pdev’ set but not used [-Wunused-but-set-variable]
  struct pci_dev *pdev;
                  ^~~~
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYe Bin <yebin10@huawei.com>
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210123013014.3815870-1-yebin10@huawei.com
parent 75ec69c7
...@@ -2083,13 +2083,11 @@ nouveau_bios_init(struct drm_device *dev) ...@@ -2083,13 +2083,11 @@ nouveau_bios_init(struct drm_device *dev)
{ {
struct nouveau_drm *drm = nouveau_drm(dev); struct nouveau_drm *drm = nouveau_drm(dev);
struct nvbios *bios = &drm->vbios; struct nvbios *bios = &drm->vbios;
struct pci_dev *pdev;
int ret; int ret;
/* only relevant for PCI devices */ /* only relevant for PCI devices */
if (!dev_is_pci(dev->dev)) if (!dev_is_pci(dev->dev))
return 0; return 0;
pdev = to_pci_dev(dev->dev);
if (!NVInitVBIOS(dev)) if (!NVInitVBIOS(dev))
return -ENODEV; return -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment