drm/nouveau/pci: fix check in nvkm_pcie_set_link
authorKarol Herbst <nouveau@karolherbst.de>
Tue, 12 Jan 2016 21:52:14 +0000 (22:52 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 13 Jan 2016 21:56:37 +0000 (07:56 +1000)
v2: remove unneeded pci check

Signed-off-by: Karol Herbst <nouveau@karolherbst.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c

index b32954f5311e60c341cb42ba96d8d29baeb1dd96..d71e5db5028ab21a5ba171474893133ca92e3f18 100644 (file)
@@ -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;