From: Chuck Lever Date: Thu, 4 Dec 2008 19:20:01 +0000 (-0500) Subject: NLM: Remove AF_UNSPEC arm in nlm_display_address() X-Git-Tag: MMI-PSA29.97-13-9~30070^2~58 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6999fb4016b2604c2f8a65586bba4a62a4b24ce7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git NLM: Remove AF_UNSPEC arm in nlm_display_address() 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 Signed-off-by: J. Bruce Fields --- diff --git a/fs/lockd/host.c b/fs/lockd/host.c index 33bf67af7aba..beb5da810167 100644 --- a/fs/lockd/host.c +++ b/fs/lockd/host.c @@ -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;