This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 25fe6b07494a3fc5291c0c170637517aa2996954
Author: Côme <44554692+com...@users.noreply.github.com>
AuthorDate: Mon Aug 11 22:11:04 2025 -0400

    Update capture.c
---
 drivers/timers/capture.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/timers/capture.c b/drivers/timers/capture.c
index a03b84e7495..f39a3388527 100644
--- a/drivers/timers/capture.c
+++ b/drivers/timers/capture.c
@@ -480,12 +480,6 @@ int cap_register_multiple(FAR const char *devpath,
       return -EINVAL;
     }
 
-  size_t devlen = strlen(devpath);
-  if (devlen == 0 || devlen > sizeof(fullpath) - 2)
-    {
-      return -ENAMETOOLONG;
-    }
-
   for (int i = 0; i < n; i++)
     {
       int written = snprintf(fullpath, sizeof(fullpath), "%s%d", devpath, i);

Reply via email to