mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
More unparenthesized return values.
This commit is contained in:
parent
1c43e2766b
commit
d41457da80
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124345
@ -1608,7 +1608,7 @@ getsockaddr(namp, uaddr, len)
|
||||
if (len > SOCK_MAXADDRLEN)
|
||||
return (ENAMETOOLONG);
|
||||
if (len < offsetof(struct sockaddr, sa_data[0]))
|
||||
return EINVAL;
|
||||
return (EINVAL);
|
||||
MALLOC(sa, struct sockaddr *, len, M_SONAME, M_WAITOK);
|
||||
error = copyin(uaddr, sa, len);
|
||||
if (error) {
|
||||
|
Loading…
Reference in New Issue
Block a user