mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +01:00
sys/tsrb: fix some style and linter complains
This commit is contained in:
parent
b04752eb30
commit
c06db62666
@ -106,7 +106,7 @@ static inline int tsrb_empty(const tsrb_t *rb)
|
|||||||
static inline unsigned int tsrb_avail(const tsrb_t *rb)
|
static inline unsigned int tsrb_avail(const tsrb_t *rb)
|
||||||
{
|
{
|
||||||
unsigned irq_state = irq_disable();
|
unsigned irq_state = irq_disable();
|
||||||
int retval = (rb->writes - rb->reads);
|
unsigned int retval = (rb->writes - rb->reads);
|
||||||
irq_restore(irq_state);
|
irq_restore(irq_state);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
@ -133,7 +133,7 @@ static inline int tsrb_full(const tsrb_t *rb)
|
|||||||
static inline unsigned int tsrb_free(const tsrb_t *rb)
|
static inline unsigned int tsrb_free(const tsrb_t *rb)
|
||||||
{
|
{
|
||||||
unsigned irq_state = irq_disable();
|
unsigned irq_state = irq_disable();
|
||||||
int retval = (rb->size - rb->writes + rb->reads);
|
unsigned int retval = (rb->size - rb->writes + rb->reads);
|
||||||
irq_restore(irq_state);
|
irq_restore(irq_state);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user