pci: fix typo in nvkm_pcie_set_link()
PATCH 1/1 pci: fix typo in nvkm_pcie_set_link()
Fix a test that would either do nothing on PCI systems, or crash badly on Tegra.
--- drm/nouveau/nvkm/subdev/pci/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drm/nouveau/nvkm/subdev/pci/pcie.c +1 -1
@@ -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;
Signature · 6 lines
2.7.0 _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): 1454491991-5839-1-git-send-email-acourbot-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org
Quoted 14 lines · Alexandre Courbot
Fix a test that would either do nothing on PCI systems, or crash badly on Tegra.
Signed-off-by Alexandre Courbot <[email protected]>Cc Karol Herbst <[email protected]>--- drm/nouveau/nvkm/subdev/pci/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drm/nouveau/nvkm/subdev/pci/pcie.c +0
-0
drm/nouveau/nvkm/subdev/pci/pcie.c nvkm_pcie_set_link(struct nvkm_pci *pci, enum nvkm_pcie_speed speed, u8 width) · line 124
Quoted 7 lines
drm/nouveau/nvkm/subdev/pci/pcie.c +1
-1@@ -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;
This has already been fixed but Ben still didn't apply this change to his repository.
Quoted 2 lines
Signature · 5 lines
-Samuel _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 32 lines · Samuel Pitoiset
Quoted 16 lines · Alexandre Courbot
Fix a test that would either do nothing on PCI systems, or crash badly on Tegra.
Signed-off-by Alexandre Courbot <[email protected]>Cc Karol Herbst <[email protected]>--- drm/nouveau/nvkm/subdev/pci/pcie.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drm/nouveau/nvkm/subdev/pci/pcie.c +0
-0drm/nouveau/nvkm/subdev/pci/pcie.c nvkm_pcie_set_link(struct nvkm_pci *pci, enum · line 125
Quoted 8 lines
drm/nouveau/nvkm/subdev/pci/pcie.c +1
-1@@ -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;This has already been fixed but Ben still didn't apply this change to his repository.
Quoted 1 line
Ah, perfect then. Dropping this patch.
Cheers,
Alex.
_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau