diff options
| author | Sakari Ailus <[email protected]> | 2023-04-17 11:14:56 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2023-07-28 08:49:11 +0000 |
| commit | cb8c9f3153004cb0930682816497426969ead27f (patch) | |
| tree | f5bebc3e23943b469cadd2174d87138851457ca8 /drivers/media/v4l2-core/v4l2-async.c | |
| parent | media: v4l: async: Allow multiple connections between entities (diff) | |
| download | kernel-cb8c9f3153004cb0930682816497426969ead27f.tar.gz kernel-cb8c9f3153004cb0930682816497426969ead27f.zip | |
media: v4l: async: Drop unneeded list entry initialisation
The list entry is initialised as a head in v4l2_async_register_subdev()
just before being added to the list. This isn't needed, drop the
initialisation.
Signed-off-by: Sakari Ailus <[email protected]>
Tested-by: Philipp Zabel <[email protected]> # imx6qp
Tested-by: Niklas Söderlund <[email protected]> # rcar + adv746x
Tested-by: Aishwarya Kothari <[email protected]> # Apalis i.MX6Q with TC358743
Tested-by: Lad Prabhakar <[email protected]> # Renesas RZ/G2L SMARC
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-async.c')
| -rw-r--r-- | drivers/media/v4l2-core/v4l2-async.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/media/v4l2-core/v4l2-async.c b/drivers/media/v4l2-core/v4l2-async.c index 6bd3e179f29f..44f72aa75c19 100644 --- a/drivers/media/v4l2-core/v4l2-async.c +++ b/drivers/media/v4l2-core/v4l2-async.c @@ -782,8 +782,6 @@ int v4l2_async_register_subdev(struct v4l2_subdev *sd) mutex_lock(&list_lock); - INIT_LIST_HEAD(&sd->async_list); - list_for_each_entry(notifier, ¬ifier_list, notifier_entry) { struct v4l2_device *v4l2_dev = v4l2_async_nf_find_v4l2_dev(notifier); |
