wireless: gs2200m: Fix error handling in sendto_request()
Summary: - This commit returns -errno to the caller Impact: - gs2200m only Testing: - Tested with spresense:wifi_smp - NOTE: need to update the gs2200m driver in NuttX Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
parent
c7f28f5f9e
commit
21f48846dd
@ -815,7 +815,7 @@ static int sendto_request(int fd, FAR struct gs2200m_s *priv,
|
|||||||
|
|
||||||
if (0 != nret)
|
if (0 != nret)
|
||||||
{
|
{
|
||||||
ret = -EINVAL;
|
ret = -errno;
|
||||||
goto prepare;
|
goto prepare;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user