]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/ASPM: Remove redundant check of pcie_set_clkpm
authorShawn Lin <shawn.lin@rock-chips.com>
Tue, 24 May 2016 09:32:10 +0000 (17:32 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 11 Jun 2016 00:07:03 +0000 (19:07 -0500)
commit2c414f4bac4f8f50bfc5392736b0f22e701739dc
tree668214571afaa03056723a652cc5c577ff0cd631
parent0491ad2600d2055b3241c61eb7ebbce5f94258a0
PCI/ASPM: Remove redundant check of pcie_set_clkpm

Without supporting clock PM capable, if we want to disable clkpm, we don't
need this extra check as it must already be zero for the enable argument.
And it's the same for enabling clkpm here.  So let's remove this check.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aspm.c