1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 11:34:59 +00:00

Kernel: Fix -Wunreachable-code warnings from clang

This commit is contained in:
Nico Weber 2021-10-07 13:51:24 -04:00 committed by Andreas Kling
parent e84c03ad61
commit 1cdb12e920
7 changed files with 6 additions and 12 deletions

View file

@ -531,8 +531,8 @@ void handle_tcp(IPv4Packet const& ipv4_packet, Time const& packet_timestamp)
socket->set_state(TCPSocket::State::Closed);
return;
}
VERIFY_NOT_REACHED();
return;
case TCPFlags::SYN:
dbgln("handle_tcp: ignoring SYN for partially established connection");
return;