From 3610473b789d33a598486fe5cd37a4f939ef085a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 14 Dec 2014 00:10:39 -0500 Subject: [PATCH] sceNetAdhoc: Remove unnecessary assignments --- Core/HLE/sceNetAdhoc.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Core/HLE/sceNetAdhoc.cpp b/Core/HLE/sceNetAdhoc.cpp index c0b76c1d0..40a0bb9fd 100644 --- a/Core/HLE/sceNetAdhoc.cpp +++ b/Core/HLE/sceNetAdhoc.cpp @@ -305,8 +305,7 @@ static int sceNetAdhocPdpCreate(const char *mac, u32 port, int bufferSize, u32 u //return ERROR_NET_ADHOC_PORT_IN_USE; // Create Internet UDP Socket - int usocket = (int)INVALID_SOCKET; - usocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); + int usocket = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); // Valid Socket produced if (usocket != INVALID_SOCKET) { // Enable Port Re-use @@ -1399,8 +1398,7 @@ static int sceNetAdhocPtpOpen(const char *srcmac, int sport, const char *dstmac, // Valid Arguments if (bufsize > 0 && rexmt_int > 0 && rexmt_cnt > 0) { // Create Infrastructure Socket - int tcpsocket = (int)INVALID_SOCKET; - tcpsocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); + int tcpsocket = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); // Valid Socket produced if (tcpsocket > 0) {