summaryrefslogtreecommitdiffstats
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-12-15 17:23:54 -0700
committerBjorn Helgaas <bhelgaas@google.com>2013-12-15 18:00:00 -0700
commitaf9ab791e34147952a8b97c998fa257d8292c5d6 (patch)
treeb449d89e5635d37cc310edce104511b847547dcb /scripts/patch-kernel
parente7b4f0d7841b188423b641cab71d20b1a05234e9 (diff)
PCI: pciehp: Move Attention & Power Indicator support tests to accessors
Previously, the caller checked ATTN_LED() or PWR_LED() to see whether the slot has indicators before setting the indicator state. That clutters the caller unnecessarily, so this moves the test inside the callees. The test may not even be necessary; per spec it should be harmless to try to turn on a non-existent LED. But checking first does avoid unnecessary hotplug commands. No functional change. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions