You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/01/12 05:22:56 UTC

[GitHub] [incubator-nuttx] MTres19 commented on a change in pull request #2664: can: fix RTR ioctl and support timeout

MTres19 commented on a change in pull request #2664:
URL: https://github.com/apache/incubator-nuttx/pull/2664#discussion_r555520626



##########
File path: drivers/can/can.c
##########
@@ -916,12 +918,15 @@ static ssize_t can_write(FAR struct file *filep, FAR const char *buffer,
  *
  ****************************************************************************/
 
-static inline ssize_t can_rtrread(FAR struct can_dev_s *dev,
-                                  FAR struct canioc_rtr_s *rtr)
+static inline ssize_t can_rtrread(FAR struct file *filep,
+                                  FAR struct canioc_rtr_s *request)
 {
-  FAR struct can_rtrwait_s *wait = NULL;
+  FAR struct can_dev_s *dev       = filep->f_inode->i_private;
+  FAR struct can_rtrwait_s *wait  = NULL;

Review comment:
       Fixed now




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

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