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 2db0b693355e7c68f7cc4adbb0b70c441c44d41d
Author: chenzihan0416 <[email protected]>
AuthorDate: Tue Jan 14 14:09:45 2025 +0800

    Update goldfish_sensor_uorb.c
---
 drivers/sensors/goldfish_sensor_uorb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/sensors/goldfish_sensor_uorb.c 
b/drivers/sensors/goldfish_sensor_uorb.c
index 274c8946fa..736293afe5 100644
--- a/drivers/sensors/goldfish_sensor_uorb.c
+++ b/drivers/sensors/goldfish_sensor_uorb.c
@@ -729,7 +729,7 @@ static int goldfish_sensor_get_info(FAR struct 
sensor_lowerhalf_s *lower,
   handle = goldfish_get_priv(lower, &priv);
   if (handle < 0)
     {
-      return -EINVAL;
+      return -handle;
     }
 
   for (i = 0; i < sizeof(g_goldfish_sensor_info); i++)

Reply via email to