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


##########
drivers/sensors/goldfish_sensor_uorb.c:
##########
@@ -594,6 +718,35 @@ static int goldfish_sensor_set_interval(FAR struct 
sensor_lowerhalf_s *lower,
   return OK;
 }
 
+static int goldfish_sensor_get_info(FAR struct sensor_lowerhalf_s *lower,
+                                    FAR struct file *filep,
+                                    FAR struct sensor_device_info_s *info)
+{
+  FAR struct goldfish_sensor_s *priv;
+  int handle;
+  int i;
+
+  handle = goldfish_get_priv(lower, &priv);
+  if (handle < 0)
+    {
+      return -EINVAL;

Review Comment:
   ```suggestion
         return -handle;
   ```



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