drivers/video: Remove memset from cleanup_streamresources

since initialize_streamresources will do it

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-12-05 03:39:27 +08:00 committed by Petro Karashchenko
parent 99311ed6a5
commit f142cf0e55
1 changed files with 0 additions and 2 deletions

View File

@ -940,8 +940,6 @@ static void cleanup_streamresources(FAR video_type_inf_t *type_inf)
video_framebuff_uninit(&type_inf->bufinf);
nxsem_destroy(&type_inf->wait_capture.dqbuf_wait_flg);
nxmutex_destroy(&type_inf->lock_state);
memset(type_inf, 0, sizeof(video_type_inf_t));
type_inf->remaining_capnum = VIDEO_REMAINING_CAPNUM_INFINITY;
}
static void cleanup_scene_parameter(video_scene_params_t *sp)