Donny9 commented on a change in pull request #2315: URL: https://github.com/apache/incubator-nuttx/pull/2315#discussion_r525752816
########## File path: drivers/sensors/sensor.c ########## @@ -867,6 +720,6 @@ void sensor_unregister(FAR struct sensor_lowerhalf_s *lower, int devno) nxsem_destroy(&upper->exclsem); nxsem_destroy(&upper->buffersem); - sensor_buffer_release(upper->buffer); + circ_buf_uninit(&upper->buffer); Review comment: okay, i will optimize code. Thank you . ---------------------------------------------------------------- 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: us...@infra.apache.org