diff options
author | Fuqian Huang <huangfq.daxian@gmail.com> | 2019-07-08 20:33:54 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-07-24 14:20:31 -0500 |
commit | befa45fb5bdd514a40a19e659491193f7fd022f2 (patch) | |
tree | 7f02f8a3fd9b954473326dce7ec314cd3bda6c10 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5f9e832c137075045d15cd6899ab0505cfb2ca4b (diff) |
PCI: Use devm_add_action_or_reset()
devm_add_action_or_reset() is a helper function which internally calls
devm_add_action(). If the devm_add_action() fails, it will execute the
action mentioned and return the error code.
Use devm_add_action_or_reset() to reduce source code size (avoid writing
the action twice) and reduce the likelihood of bugs.
Link: https://lore.kernel.org/r/20190708123354.12127-1-huangfq.daxian@gmail.com
Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions