]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: media: ipu3: Drop superfluous check in imgu_vb2_stop_streaming()
authorMax Staudt <mstaudt@chromium.org>
Thu, 20 Jun 2024 14:45:41 +0000 (23:45 +0900)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 31 Aug 2024 07:40:42 +0000 (09:40 +0200)
commit1395ff433cde9074f11ea24f092368570b5a544e
tree0b30757bd4e6aa0904968fb1701e12b2b30c3423
parentf2b0effa9d079ab1a842c0c67c0ed01146305c6a
staging: media: ipu3: Drop superfluous check in imgu_vb2_stop_streaming()

The check for imgu_all_nodes_streaming() seems superfluous, since
imgu->streaming can only become true once imgu_all_nodes_streaming()
has been true. Hence, checking for imgu->streaming == true should
imply imgu_all_nodes_streaming(), and therefore suffice.

Signed-off-by: Max Staudt <mstaudt@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/ipu3/ipu3-v4l2.c