media: cobalt: Use list_for_each_entry() helper
authorJinjie Ruan <ruanjinjie@huawei.com>
Wed, 23 Aug 2023 07:16:52 +0000 (15:16 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 27 Sep 2023 07:39:55 +0000 (09:39 +0200)
commit0c7af09408b3e4bb7e9a3b430a93473494d9b748
tree8b1d054e49a437f79b39dd573b9a02d5656aa50e
parent1c2786632e20c8f0fd4004fae3b3490276e5e5da
media: cobalt: Use list_for_each_entry() helper

Convert list_for_each() to list_for_each_entry() so that the p
list_head pointer and list_entry() call are no longer needed, which
can reduce a few lines of code. No functional changed.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/pci/cobalt/cobalt-v4l2.c