Skip to content
Snippets Groups Projects
Commit 9572e669 authored by Qinglang Miao's avatar Qinglang Miao Committed by Daniel Vetter
Browse files

vga_switcheroo: simplify the return expression of vga_switcheroo_runtime_resume

parent ca4bd68e
No related branches found
No related tags found
No related merge requests found
......@@ -1034,17 +1034,12 @@ static int vga_switcheroo_runtime_suspend(struct device *dev)
static int vga_switcheroo_runtime_resume(struct device *dev)
{
struct pci_dev *pdev = to_pci_dev(dev);
int ret;
mutex_lock(&vgasr_mutex);
vga_switcheroo_power_switch(pdev, VGA_SWITCHEROO_ON);
mutex_unlock(&vgasr_mutex);
pci_wakeup_bus(pdev->bus);
ret = dev->bus->pm->runtime_resume(dev);
if (ret)
return ret;
return 0;
return dev->bus->pm->runtime_resume(dev);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment