1.代码优化。

This commit is contained in:
MacRsh
2024-01-22 16:58:30 +08:00
parent 81d9c2b100
commit 6f059f4935
2 changed files with 0 additions and 3 deletions

View File

@@ -329,5 +329,3 @@ struct mr_dev
#endif /* __cplusplus */ #endif /* __cplusplus */
#endif /* _MR_DEF_H_ */ #endif /* _MR_DEF_H_ */
#pragma clang diagnostic pop

View File

@@ -381,7 +381,6 @@ size_t mr_ringbuf_read(struct mr_ringbuf *ringbuf, void *buffer, size_t size)
{ {
memcpy(read_buffer, &ringbuf->buffer[ringbuf->read_index], size); memcpy(read_buffer, &ringbuf->buffer[ringbuf->read_index], size);
ringbuf->read_index += size; ringbuf->read_index += size;
return size; return size;
} }