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 2020/12/31 03:24:19 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a change in pull request #2627: OS internal function should indicate the error by return negative value

xiaoxiang781216 commented on a change in pull request #2627:
URL: https://github.com/apache/incubator-nuttx/pull/2627#discussion_r550386134



##########
File path: drivers/sensors/adxl372.c
##########
@@ -716,10 +720,12 @@ static void adxl372_dvr_exchange(FAR void *instance_handle,
                                  FAR const void *txbuffer,
                                  FAR void *rxbuffer, size_t nwords)
 {
-  FAR struct adxl372_dev_s *priv = (FAR struct adxl372_dev_s *)instance_handle;
+  FAR struct adxl372_dev_s *priv = instance_handle;

Review comment:
       To fix the long length warning.




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