Skip to content

Commit

Permalink
drm/nouveau: remove set but not used variable ‘pdev’ in nouveau_bios_…
Browse files Browse the repository at this point in the history
…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: Hulk Robot <[email protected]>
Signed-off-by: Ye Bin <[email protected]>
Signed-off-by: Thomas Zimmermann <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
Ye Bin authored and Thomas Zimmermann committed Feb 3, 2021
1 parent 75ec69c commit 09b2098
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/gpu/drm/nouveau/nouveau_bios.c
Original file line number Diff line number Diff line change
Expand Up @@ -2083,13 +2083,11 @@ nouveau_bios_init(struct drm_device *dev)
{
struct nouveau_drm *drm = nouveau_drm(dev);
struct nvbios *bios = &drm->vbios;
struct pci_dev *pdev;
int ret;

/* only relevant for PCI devices */
if (!dev_is_pci(dev->dev))
return 0;
pdev = to_pci_dev(dev->dev);

if (!NVInitVBIOS(dev))
return -ENODEV;
Expand Down

0 comments on commit 09b2098

Please sign in to comment.