mount.nfs: Remove a redundant port assignment
Subsystems (2)
PATCH 4/10 mount.nfs: Remove a redundant port assignment
getport() always fills in its port number before calling GETPORT. No need for the caller to do this.
Signed-off-by Chuck Lever <[email protected]>
---
utils/mount/network.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
utils/mount/network.c +0 -1
@@ -333,7 +333,6 @@ static int probe_port(clnt_addr_t *server, const unsigned long *versions, p_vers = vers ? &vers : versions; rpc_createerr.cf_stat =0 ;for (;;) { - saddr->sin_port =htons (PMAPPORT ); p_port =getport (saddr, prog, *p_vers, *p_prot);if (p_port) {if (!port || port == p_port) {
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs