linux/drivers/media
Duoming Zhou ec9fd10b48 media: i2c: adv7842: Remove redundant cancel_delayed_work in probe
commit e66a5cc606 upstream.

The delayed_work delayed_work_enable_hotplug is initialized with
INIT_DELAYED_WORK() in adv7842_probe(), but it is never scheduled
anywhere in the probe function.

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 and adjust the goto label accordingly to simplify the code
and avoid potential confusion.

Fixes: a89bcd4c6c ("[media] adv7842: add new video decoder driver")
Cc: stable@vger.kernel.org
Signed-off-by: Duoming Zhou <duoming@zju.edu.cn>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-01-19 13:10:02 +01:00
..
cec media: cec: Fix debugfs leak on bus_register() failure 2026-01-19 13:10:02 +01:00
common media: videobuf2: use sgtable-based scatterlist wrappers 2025-06-27 11:05:24 +01:00
dvb-core media: dvbdev: fix the logic when DVB_DYNAMIC_MINORS is not set 2024-12-14 19:50:37 +01:00
dvb-frontends minmax: make generic MIN() and MAX() macros available everywhere 2025-10-19 16:21:52 +02:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-11-06 14:13:30 +01:00
i2c media: i2c: adv7842: Remove redundant cancel_delayed_work in probe 2026-01-19 13:10:02 +01:00
mc media: mc: Clear minor number before put device 2025-10-19 16:21:50 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: pci: ivtv: Don't create fake v4l2_fh 2025-12-07 06:09:18 +09:00
platform media: s5p-mfc: remove an unused/uninitialized variable 2025-10-29 14:03:06 +01:00
radio media: wl128x: Fix atomicity violation in fmc_send_cmd() 2024-12-14 19:51:17 +01:00
rc media: rc: st_rc: Fix reset control resource leak 2026-01-19 13:10:01 +01:00
spi media: cxd2880-spi: Fix a null pointer dereference on error handling path 2021-11-18 19:16:27 +01:00
test-drivers media: vidtv: initialize local pointers upon transfer of memory ownership 2026-01-19 13:09:52 +01:00
tuners media: fix uninitialized symbol warnings 2025-12-07 06:09:20 +09:00
usb media: pvrusb2: Fix incorrect variable used in trace message 2026-01-19 13:09:50 +01:00
v4l2-core media: v4l2-ctrls: Don't reset handler's error in v4l2_ctrl_handler_free() 2025-08-28 16:24:29 +02:00
Kconfig media: correct MEDIA_TEST_SUPPORT help text 2022-01-27 11:05:20 +01:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00