1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

Remove unnecessary default:breaks

This commit is contained in:
Nekotekina 2021-04-11 18:58:56 +03:00
parent 99d6f9c7a9
commit 19763f8973
3 changed files with 3 additions and 5 deletions

View File

@ -96,7 +96,6 @@ void fmt_class_string<lv2_socket_type>::format(std::string& out, u64 arg)
case SYS_NET_SOCK_RAW: return "RAW";
case SYS_NET_SOCK_DGRAM_P2P: return "DGRAM-P2P";
case SYS_NET_SOCK_STREAM_P2P: return "STREAM-P2P";
default: break;
}
return unknown;
@ -114,7 +113,6 @@ void fmt_class_string<lv2_socket_family>::format(std::string& out, u64 arg)
case SYS_NET_AF_LOCAL: return "LOCAL";
case SYS_NET_AF_INET: return "INET";
case SYS_NET_AF_INET6: return "INET6";
default: break;
}
return unknown;

View File

@ -20,7 +20,8 @@ s32 send_packet_from_p2p_port(const std::vector<u8>& data, const sockaddr_in& ad
template <>
void fmt_class_string<SignalingCommand>::format(std::string& out, u64 arg)
{
format_enum(out, arg, [](auto value) {
format_enum(out, arg, [](auto value)
{
switch (value)
{
case signal_ping: return "PING";
@ -30,7 +31,6 @@ void fmt_class_string<SignalingCommand>::format(std::string& out, u64 arg)
case signal_confirm: return "CONFIRM";
case signal_finished: return "FINISHED";
case signal_finished_ack: return "FINISHED_ACK";
default: break;
}
return unknown;

View File

@ -28,10 +28,10 @@ void fmt_class_string<psf::error>::format(std::string& out, u64 arg)
{
switch (fmt)
{
case psf::error::ok: return "OK";
case psf::error::stream: return "File doesn't exist";
case psf::error::not_psf: return "File is not of PSF format";
case psf::error::corrupt: return "PSF is truncated or corrupted";
default: break;
}
return unknown;