video/v4l2_cap: fix no return after checked null

Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
This commit is contained in:
shizhenghui 2024-05-31 10:56:35 +08:00 committed by Alan Carvalho de Assis
parent aa451d3740
commit 80da796897

View file

@ -2379,10 +2379,9 @@ static int capture_dqbuf(FAR struct file *filep,
* Therefore, Check cause.
*/
if (type_inf->wait_capture.waitend_cause == WAITEND_CAUSE_DQCANCEL)
{
return -ECANCELED;
}
DEBUGASSERT(type_inf->wait_capture.waitend_cause ==
WAITEND_CAUSE_DQCANCEL);
return -ECANCELED;
}
type_inf->wait_capture.done_container = NULL;