1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

tsrb: remove now unnecessary cast

Both `unsigned char` and `uint8_t` are unsigned (and the same type on
most platforms) so this cast became redundant.
This commit is contained in:
Martine Lenders 2019-06-05 12:50:38 +02:00
parent d361fc52a0
commit fb19b514f4

View File

@ -32,7 +32,7 @@ static uint8_t _pop(tsrb_t *rb)
int tsrb_get_one(tsrb_t *rb)
{
if (!tsrb_empty(rb)) {
return (unsigned char)_pop(rb);
return _pop(rb);
}
else {
return -1;