Skip to content

Commit

Permalink
NLM: Remove AF_UNSPEC arm in nlm_display_address()
Browse files Browse the repository at this point in the history
AF_UNSPEC support is no longer needed in nlm_display_address() now
that a presentation address is no longer generated for the h_srcaddr
field.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
  • Loading branch information
Chuck Lever authored and J. Bruce Fields committed Jan 6, 2009
1 parent 1df40b6 commit 6999fb4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/lockd/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ static void nlm_display_address(const struct sockaddr *sap,
const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap;

switch (sap->sa_family) {
case AF_UNSPEC:
snprintf(buf, len, "unspecified");
break;
case AF_INET:
snprintf(buf, len, "%pI4", &sin->sin_addr.s_addr);
break;
Expand Down

0 comments on commit 6999fb4

Please sign in to comment.