projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cfd777
)
drm/nouveau/pci: fix check in nvkm_pcie_set_link
author
Karol Herbst
<nouveau@karolherbst.de>
Tue, 12 Jan 2016 21:52:14 +0000
(22:52 +0100)
committer
Dave 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c
index b32954f5311e60c341cb42ba96d8d29baeb1dd96..d71e5db5028ab21a5ba171474893133ca92e3f18 100644
(file)
--- 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;