Skip to content

Commit

Permalink
Remove unused sockaddr NULL check
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Nov 7, 2024
1 parent 5227acf commit 5f0b076
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/platform/posix/posix_sockaddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ nni_posix_sockaddr2nn(nni_sockaddr *na, const void *sa, size_t sz)
nng_sockaddr_in6 *nsin6;
#endif

if ((na == NULL) || (sa == NULL)) {
return (-1);
}
switch (((struct sockaddr *) sa)->sa_family) {
case AF_INET:
if (sz < sizeof(*sin)) {
Expand Down

0 comments on commit 5f0b076

Please sign in to comment.