aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfsctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfsd/nfsctl.c')
-rw-r--r--fs/nfsd/nfsctl.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
index 2604c3e70ea5..f43ecd61fa81 100644
--- a/fs/nfsd/nfsctl.c
+++ b/fs/nfsd/nfsctl.c
@@ -1002,12 +1002,8 @@ static ssize_t __write_ports_addxprt(char *buf)
1002 1002
1003 err = svc_create_xprt(nfsd_serv, transport, 1003 err = svc_create_xprt(nfsd_serv, transport,
1004 PF_INET, port, SVC_SOCK_ANONYMOUS); 1004 PF_INET, port, SVC_SOCK_ANONYMOUS);
1005 if (err < 0) { 1005 if (err < 0)
1006 /* Give a reasonable perror msg for bad transport string */
1007 if (err == -ENOENT)
1008 err = -EPROTONOSUPPORT;
1009 return err; 1006 return err;
1010 }
1011 return 0; 1007 return 0;
1012} 1008}
1013 1009