Commit 25c80507 authored by Karol Herbst's avatar Karol Herbst Committed by Dave Airlie

drm/nouveau/pci: fix check in nvkm_pcie_set_link

v2: remove unneeded pci check
Signed-off-by: default avatarKarol Herbst <nouveau@karolherbst.de>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 6cfd7775
...@@ -119,7 +119,7 @@ nvkm_pcie_set_link(struct nvkm_pci *pci, enum nvkm_pcie_speed speed, u8 width) ...@@ -119,7 +119,7 @@ nvkm_pcie_set_link(struct nvkm_pci *pci, enum nvkm_pcie_speed speed, u8 width)
struct pci_bus *pbus; struct pci_bus *pbus;
int ret; int ret;
if (pci || !pci_is_pcie(pci->pdev)) if (!pci || !pci_is_pcie(pci->pdev))
return 0; return 0;
pbus = pci->pdev->bus; pbus = pci->pdev->bus;
......
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