Simplify handle_sock_raw() in src/server.c

This commit is contained in:
XANTRONIX Development 2020-09-23 08:50:37 -05:00 committed by XANTRONIX Industrial
parent 754491b692
commit 9f6f775ee4

View file

@ -2117,7 +2117,7 @@ static int handle_sock_raw(patty_ax25_server *server,
while (1) { while (1) {
ssize_t len; ssize_t len;
if ((len = patty_kiss_tnc_drain(raw, iface->tx_buf, iface->mtu)) < 0) { if (patty_kiss_tnc_drain(raw, iface->tx_buf, iface->mtu) < 0) {
goto error_io; goto error_io;
} }