This is an automated email from the ASF dual-hosted git repository. pkarashchenko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 99311ed6a5dd390953463f73ed03325e8d9e94d6 Author: Xiang Xiao <xiaoxi...@xiaomi.com> AuthorDate: Mon Dec 5 04:09:50 2022 +0800 drivers/video: Should do uninitialization if is_initialized is true Signed-off-by: Xiang Xiao <xiaoxi...@xiaomi.com> --- drivers/video/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/video.c b/drivers/video/video.c index 2adaf5250e..bfc406e0bc 100644 --- a/drivers/video/video.c +++ b/drivers/video/video.c @@ -3362,7 +3362,7 @@ int video_initialize(FAR const char *devpath) int video_uninitialize(void) { - if (is_initialized) + if (!is_initialized) { return OK; }