On Mon Sep 1 21:26:17 2025 +0800, Duoming Zhou wrote:
> The delayed_work delayed_work_enable_hpd is initialized with
> INIT_DELAYED_WORK(), but it is never scheduled in tda1997x_probe().
> 
> Calling cancel_delayed_work() on a work that has never been
> scheduled is redundant and unnecessary, as there is no pending
> work to cancel.
> 
> Remove the redundant cancel_delayed_work() from error handling
> path in tda1997x_probe() to avoid potential confusion.
> 
> Fixes: 9ac0038db9a7 ("media: i2c: Add TDA1997x HDMI receiver driver")
> Cc: [email protected]
> Signed-off-by: Duoming Zhou <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>

Patch committed.

Thanks,
Hans Verkuil

 drivers/media/i2c/tda1997x.c | 1 -
 1 file changed, 1 deletion(-)

---

diff --git a/drivers/media/i2c/tda1997x.c b/drivers/media/i2c/tda1997x.c
index 1087d2bddaf2..3532766cd795 100644
--- a/drivers/media/i2c/tda1997x.c
+++ b/drivers/media/i2c/tda1997x.c
@@ -2797,7 +2797,6 @@ err_free_media:
 err_free_handler:
        v4l2_ctrl_handler_free(&state->hdl);
 err_free_mutex:
-       cancel_delayed_work(&state->delayed_work_enable_hpd);
        mutex_destroy(&state->page_lock);
        mutex_destroy(&state->lock);
        tda1997x_set_power(state, 0);
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to