summaryrefslogtreecommitdiffstats
path: root/fs/lockd
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2008-12-04 14:20:01 -0500
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-01-06 11:53:49 -0500
commit6999fb4016b2604c2f8a65586bba4a62a4b24ce7 (patch)
tree14639d66b17613d364898c4b59b01903f7db1bb6 /fs/lockd
parent1df40b609ad5a622904eb652109c287fe9c93ec5 (diff)
downloadop-kernel-dev-6999fb4016b2604c2f8a65586bba4a62a4b24ce7.zip
op-kernel-dev-6999fb4016b2604c2f8a65586bba4a62a4b24ce7.tar.gz
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 <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/lockd')
-rw-r--r--fs/lockd/host.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/lockd/host.c b/fs/lockd/host.c
index 33bf67a..beb5da8 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;
OpenPOWER on IntegriCloud