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


##########
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);

Review Comment:
   should we fix video_unregister?



##########
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:
   why not call nx_unlink directly



-- 
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