mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 21:13:33 +08:00
POSIX: code format changes
Changed the code format of the files derived from NuttX to match the code style of PX4. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -57,21 +57,20 @@
|
||||
*
|
||||
************************************************************/
|
||||
|
||||
FAR sq_entry_t *sq_remfirst(sq_queue_t *queue)
|
||||
sq_entry_t *sq_remfirst(sq_queue_t *queue)
|
||||
{
|
||||
FAR sq_entry_t *ret = queue->head;
|
||||
sq_entry_t *ret = queue->head;
|
||||
|
||||
if (ret)
|
||||
{
|
||||
queue->head = ret->flink;
|
||||
if (!queue->head)
|
||||
{
|
||||
queue->tail = NULL;
|
||||
}
|
||||
if (ret) {
|
||||
queue->head = ret->flink;
|
||||
|
||||
ret->flink = NULL;
|
||||
}
|
||||
if (!queue->head) {
|
||||
queue->tail = NULL;
|
||||
}
|
||||
|
||||
return ret;
|
||||
ret->flink = NULL;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user