summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKarol Herbst <nouveau@karolherbst.de>2016-01-13 00:52:14 +0300
committerDave Airlie <airlied@redhat.com>2016-01-14 00:56:37 +0300
commit25c80507dd9ed19a5eab9a847120865a17b198da (patch)
tree49f97ff8b4aeefe494e100b52c77a415770f2b17 /drivers
parent6cfd7775840cad7877b2b43e750105fa0933656b (diff)
downloadlinux-25c80507dd9ed19a5eab9a847120865a17b198da.tar.xz
drm/nouveau/pci: fix check in nvkm_pcie_set_link
v2: remove unneeded pci check Signed-off-by: Karol Herbst <nouveau@karolherbst.de> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c2
1 files changed, 1 insertions, 1 deletions
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;