summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorDuoming Zhou <duoming@zju.edu.cn>2025-09-02 09:10:31 +0800
committerHans Verkuil <hverkuil+cisco@kernel.org>2025-10-14 15:07:37 +0200
commite66a5cc606c58e72f18f9cdd868a3672e918f9f8 (patch)
treefba263b80d92fd6fc062aa5d1278cafabec7195e /include/linux/debugobjects.h
parent29de195ca39fc2ac0af6fd45522994df9f431f80 (diff)
media: i2c: adv7842: Remove redundant cancel_delayed_work in probe
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: a89bcd4c6c20 ("[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>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions