mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-15 15:04:27 +08:00
media: v4l: async: Drop useless list move operation
v4l2_async_unbind_subdev_one(), which is called in the line following the list_move() operation contains list_move_tail() for the same entry and overrides anything list_move() did. Thus it can be removed. Signed-off-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
3de6ee94aa
commit
bec3db0391
@ -876,9 +876,6 @@ void v4l2_async_unregister_subdev(struct v4l2_subdev *sd)
|
||||
if (sd->asc_list.next) {
|
||||
list_for_each_entry_safe(asc, asc_tmp, &sd->asc_list,
|
||||
asc_subdev_entry) {
|
||||
list_move(&asc->asc_entry,
|
||||
&asc->notifier->waiting_list);
|
||||
|
||||
v4l2_async_unbind_subdev_one(asc->notifier, asc);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user