diff --git a/net/local/local_recvmsg.c b/net/local/local_recvmsg.c index 3f977d9686..c96226ef16 100644 --- a/net/local/local_recvmsg.c +++ b/net/local/local_recvmsg.c @@ -110,11 +110,7 @@ static int psock_fifo_read(FAR struct socket *psock, FAR void *buf, } else { - if (ret == -EAGAIN) - { - nwarn("WARNING: Failed to read packet: %d\n", ret); - } - else + if (ret != -EAGAIN) { nerr("ERROR: Failed to read packet: %d\n", ret); }