aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2022-02-13 20:48:53 +0100
committerGuenter Roeck <[email protected]>2022-05-17 05:52:59 -0700
commitc0c45238fcf44b05c86f2f7d1dda136df7a83ff9 (patch)
tree5323385a61716a81096f8a151850e32775d64007 /tools/perf/scripts/python/net_dropmonitor.py
parentab9ac6df22527b22fcceb6a16f5035ee778c9688 (diff)
hwmon: (peci) Use devm_delayed_work_autocancel() to simplify code
Use devm_delayed_work_autocancel() instead of hand writing it. This is less verbose and saves a few lines of code. devm_delayed_work_autocancel() uses devm_add_action() instead of devm_add_action_or_reset(). This is fine, because if the underlying memory allocation fails, no work has been scheduled yet. So there is nothing to undo. Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Iwona Winiarska <[email protected]> Link: https://lore.kernel.org/r/fd277a708ede3882d7df6831f02d2e3c0cb813b8.1644781718.git.christophe.jaillet@wanadoo.fr Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions