(netplay_frontend) Small style nits/cleanups

This commit is contained in:
twinaphex 2022-05-14 04:34:11 +02:00
parent b934b41758
commit a577d7d224

View File

@ -8684,9 +8684,9 @@ bool netplay_driver_ctl(enum rarch_netplay_ctl_state state, void *data)
if (!netplay) if (!netplay)
break; break;
netplay_post_frame(netplay); netplay_post_frame(netplay);
/* If we're disconnected, deinitialize */ /* If we're disconnected, deinitialize */
if (!netplay->is_server && !netplay->connections[0].active) if (!netplay->is_server && !netplay->connections[0].active)
netplay_disconnect(netplay); netplay_disconnect(netplay);
break; break;
case RARCH_NETPLAY_CTL_PRE_FRAME: case RARCH_NETPLAY_CTL_PRE_FRAME:
@ -8782,9 +8782,7 @@ bool netplay_driver_ctl(enum rarch_netplay_ctl_state state, void *data)
ret = false; ret = false;
} }
else else
{
ret = false; ret = false;
}
break; break;
case RARCH_NETPLAY_CTL_NONE: case RARCH_NETPLAY_CTL_NONE:
@ -8803,7 +8801,7 @@ bool netplay_driver_ctl(enum rarch_netplay_ctl_state state, void *data)
bool netplay_decode_hostname(const char *hostname, bool netplay_decode_hostname(const char *hostname,
char *address, unsigned *port, char *session, size_t len) char *address, unsigned *port, char *session, size_t len)
{ {
struct string_list *hostname_data; struct string_list *hostname_data = NULL;
if (string_is_empty(hostname)) if (string_is_empty(hostname))
return false; return false;