UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 18 Oct 2016 07:57:49 +0000 (15:57 +0800)
commit663a5ea88bc04fe7e282b8de7b0830ad995b47cb
tree6b36bf0f2828c9234cd0d56c23696887749c1410
parentf8218978f0d7c86a5576b77202cc2c54d468ec39
UPSTREAM: 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 already be zero for
the enable argument. And it's the same for enabling clkpm here.
So let's remove this check.

Change-Id: I0dc251e5dea940a2288fbb31a58336dea83f2515
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from git.kernel.org/cgit/linux/kernel/git/next/linux-next.git
commit a6c1c6f3547b6c4cbd4a30d67a968ee1519a8ffd)
drivers/pci/pcie/aspm.c