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)
struct pci_bus *pbus;
int ret;
if (pci || !pci_is_pcie(pci->pdev))
if (!pci || !pci_is_pcie(pci->pdev))
return 0;
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