On Sun, 13 Feb 2022 19:29:05 +0100
Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> wrote:
Use devm_delayed_work_autocancel() instead of hand writing it. This isLooks good to me, but I'd ideally like some input from someone familiar with
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 <christophe.jaillet@xxxxxxxxxx>
the driver.