mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
video/v4l2_cap: fix no return after checked null
Signed-off-by: shizhenghui <shizhenghui@xiaomi.com>
This commit is contained in:
parent
aa451d3740
commit
80da796897
1 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue