anchao commented on code in PR #15603:
URL: https://github.com/apache/nuttx/pull/15603#discussion_r1923536754


##########
fs/vfs/fs_read.c:
##########
@@ -50,19 +50,14 @@
  *
  ****************************************************************************/
 
-static ssize_t file_readv_compat(FAR struct file *filep, FAR struct uio *uio)
+static ssize_t file_readv_compat(FAR struct file *filep,
+                                 FAR const struct iovec *iov, int iovcnt)
 {
-  FAR const struct iovec *iov = uio->uio_iov;
-  int iovcnt = uio->uio_iovcnt;
   FAR struct inode *inode = filep->f_inode;
   ssize_t ntotal;
   ssize_t nread;
-  size_t remaining;
-  FAR uint8_t *buffer;
   int i;
 
-  DEBUGASSERT(inode->u.i_ops->read != NULL);

Review Comment:
   already have the check before call this internal function:
   
   
![image](https://github.com/user-attachments/assets/79224e39-1384-4829-999a-e2f44b245e74)
   



-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to