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;