SPRESENSE commented on code in PR #11008:
URL: https://github.com/apache/nuttx/pull/11008#discussion_r1406944349


##########
drivers/video/video.c:
##########
@@ -3410,7 +3416,16 @@ int video_initialize(FAR const char *devpath)
 
 int video_uninitialize(FAR const char *devpath)
 {
-  return video_unregister(devpath);
+  int ret;
+  struct stat buf;
+
+  ret = nx_stat(devpath, &buf, 1);
+  if (ret == 0)

Review Comment:
   @xiaoxiang78126 Sorry for the late reply.
   If unlink() has already been executed, /dev/video file is deleted.
   this validates that unlink() is not called.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to