public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] drm/nouveau/pci: reversed condition in nvkm_pcie_set_link()
@ 2016-01-13 12:21 Dan Carpenter
  2016-01-13 12:30 ` Karol Herbst
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2016-01-13 12:21 UTC (permalink / raw)
  To: David Airlie, Karol Herbst; +Cc: dri-devel, linux-kernel, kernel-janitors

The condition is reversed so this function is a no-op.

Fixes: bcc19d9bf5cd ('drm/nouveau/pci: implement generic code for pcie speed change')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c b/drivers/gpu/drm/nouveau/nvkm/subdev/pci/pcie.c
index b32954f..d71e5db 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;
 

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-13 12:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-13 12:21 [patch] drm/nouveau/pci: reversed condition in nvkm_pcie_set_link() Dan Carpenter
2016-01-13 12:30 ` Karol Herbst
2016-01-13 12:33   ` Karol Herbst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox