From 21f6f42741b7244dd5a145361ecba80456647fc4 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 7 Mar 2023 10:03:43 -0400 Subject: TTcpSocket: Remove unnecessary local variables --- src/pso/TTcpSocket.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pso/TTcpSocket.cpp b/src/pso/TTcpSocket.cpp index e923abb..beb5565 100644 --- a/src/pso/TTcpSocket.cpp +++ b/src/pso/TTcpSocket.cpp @@ -99,8 +99,7 @@ int TTcpSocket::send(u8 *data, size_t size) { m_send_crypt.encrypt(data, size); } - const s8 flags = is_invalid_packet(); - if (flags || !get_link_status()) { + if (is_invalid_packet() || !get_link_status()) { return -1; } else { if (int status = stat()) { @@ -138,8 +137,7 @@ int TTcpSocket::send(u8 *data, size_t size) { short TTcpSocket::send(u8 *data) { if (sock_fd() != -1) { - const s8 flags = is_invalid_packet(); - if (flags || !get_link_status()) { + if (is_invalid_packet() || !get_link_status()) { return -1; } else { if (short status = stat()) { -- cgit v1.2.3-13-gbd6f