Skip to content

Commit

Permalink
net/can: correct the return value if unsupported socket type
Browse files Browse the repository at this point in the history
Signed-off-by: chao an <[email protected]>
  • Loading branch information
anchao committed Aug 30, 2023
1 parent b60f01a commit dd93991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/can/can_recvmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit dd93991

Please sign in to comment.