mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 19:26:01 -04:00
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>
This commit is contained in:
@@ -548,7 +548,7 @@ static void imgu_vb2_stop_streaming(struct vb2_queue *vq)
|
||||
|
||||
mutex_lock(&imgu->streaming_lock);
|
||||
/* Was this the first node with streaming disabled? */
|
||||
if (imgu->streaming && imgu_all_nodes_streaming(imgu, node)) {
|
||||
if (imgu->streaming) {
|
||||
/* Yes, really stop streaming now */
|
||||
dev_dbg(dev, "IMGU streaming is ready to stop");
|
||||
r = imgu_s_stream(imgu, false);
|
||||
|
||||
Reference in New Issue
Block a user