mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
drm/nouveau/pci: fix check in nvkm_pcie_set_link
v2: remove unneeded pci check Signed-off-by: Karol Herbst <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
parent
6cfd777584
commit
25c80507dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue