From 260af07717353de2ac93dc6cc3d6a727eb4eef1e Mon Sep 17 00:00:00 2001 From: Juha Niskanen Date: Thu, 9 Jan 2020 07:31:40 -0600 Subject: [PATCH] net/usrsock/usrsock_dev.c: Fix uninitialized return value introduced in 6a3c2ade. --- net/usrsock/usrsock_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/usrsock/usrsock_dev.c b/net/usrsock/usrsock_dev.c index cab8f59ff2..26e9441001 100644 --- a/net/usrsock/usrsock_dev.c +++ b/net/usrsock/usrsock_dev.c @@ -1166,7 +1166,7 @@ int usrsockdev_do_request(FAR struct usrsock_conn_s *conn, { FAR struct usrsockdev_s *dev = conn->dev; FAR struct usrsock_request_common_s *req_head = iov[0].iov_base; - int ret; + int ret = OK; if (!dev) {