mirror of
https://github.com/apache/nuttx.git
synced 2026-08-18 12:08:16 +00:00
net/can: correct the return value if unsupported socket type
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
664927c86e
commit
3cbf13dd1d
1 changed files with 1 additions and 1 deletions
|
|
@ -480,7 +480,7 @@ ssize_t can_recvmsg(FAR struct socket *psock, FAR struct msghdr *msg,
|
|||
if (psock->s_type != SOCK_RAW)
|
||||
{
|
||||
nerr("ERROR: Unsupported socket type: %d\n", psock->s_type);
|
||||
ret = -ENOSYS;
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
net_lock();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue