From 25c80507dd9ed19a5eab9a847120865a17b198da Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Tue, 12 Jan 2016 22:52:14 +0100 Subject: [PATCH] drm/nouveau/pci: fix check in nvkm_pcie_set_link v2: remove unneeded pci check Signed-off-by: Karol Herbst Signed-off-by: Dave Airlie --- drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c b/drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c index b32954f5311e..d71e5db5028a 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c @@ -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; -- 2.20.1