From e0bd50287a907b33015b53c581040a870d8ff12a Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Fri, 3 Aug 2007 13:23:44 -0400 Subject: [PATCH] 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 --- utils/mount/network.c | 1 - 1 file changed, 1 deletion(-) 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) { -- 2.39.5