From: Chuck Lever Date: Fri, 3 Aug 2007 17:23:44 +0000 (-0400) Subject: mount.nfs: Remove a redundant port assignment X-Git-Tag: nfs-utils-1-1-1~98 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e0bd50287a907b33015b53c581040a870d8ff12a;p=nfs-utils.git 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 Signed-off-by: Neil Brown --- diff --git a/utils/mount/network.c b/utils/mount/network.c index efedf25..220bbce 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -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) {