diff --git a/libretro-common/net/net_compat.c b/libretro-common/net/net_compat.c index 27dc83b98a..158e49426f 100644 --- a/libretro-common/net/net_compat.c +++ b/libretro-common/net/net_compat.c @@ -213,29 +213,21 @@ int network_interface_up(struct sockaddr_in *target, int index, int state, timeout_count = 10; ret = cellNetCtlInit(); if (ret < 0) - { - printf("cellNetCtlInit() failed(%x)\n", ret); return -1; - } for (;;) { ret = cellNetCtlGetState(&state); if (ret < 0) - { - printf("cellNetCtlGetState() failed(%x)\n", ret); return -1; - } + if (state == CELL_NET_CTL_STATE_IPObtained) break; rarch_sleep(500); timeout_count--; if (index && timeout_count < 0) - { - printf("if_up_with(%d) timeout\n", index); return 0; - } } #elif defined(GEKKO) char t[16];