mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 16:11:56 +08:00
drivers/video: Should do uninitialization if is_initialized is true
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
92e72f8624
commit
99311ed6a5
@@ -3362,7 +3362,7 @@ int video_initialize(FAR const char *devpath)
|
||||
|
||||
int video_uninitialize(void)
|
||||
{
|
||||
if (is_initialized)
|
||||
if (!is_initialized)
|
||||
{
|
||||
return OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user