mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-07 20:00:23 +00:00
usb: use if-else in packet_handler
Apparently this construct leads to a compiler errors like error: second operand to the conditional operator is of type ‘void’, but the third operand is neither a throw-expression nor of type ‘void’
This commit is contained in:
parent
c9db94313c
commit
8f577e9d25
@ -76,7 +76,8 @@ class Usb::Packet_handler
|
|||||||
|
|
||||||
void wait_for_packet()
|
void wait_for_packet()
|
||||||
{
|
{
|
||||||
packet_avail() ? _packet_handler() : _ep.wait_and_dispatch_one_io_signal();
|
if (packet_avail()) { _packet_handler(); }
|
||||||
|
else { _ep.wait_and_dispatch_one_io_signal(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
Packet_descriptor alloc(size_t size)
|
Packet_descriptor alloc(size_t size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user