All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Kent <raven@themaw.net>
To: "Lan Yixun (dlan)" <dennis.yxun@gmail.com>
Cc: autofs mailing list <autofs@vger.kernel.org>
Subject: [PATCH 2/5] autofs-5.0.8 - fix fix ipv6 libtirpc getport
Date: Tue, 24 Dec 2013 16:02:17 +0800	[thread overview]
Message-ID: <20131224080217.8321.83919.stgit@perseus.fritz.box> (raw)
In-Reply-To: <20131224075909.8321.95699.stgit@perseus.fritz.box>

Remove a duplicated case entry and remove redundant check, since it
can never be reached, in rpc_rpcb_getport().
---
 lib/rpc_subs.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lib/rpc_subs.c b/lib/rpc_subs.c
index 9d5b2f5..cfb63d2 100644
--- a/lib/rpc_subs.c
+++ b/lib/rpc_subs.c
@@ -524,7 +524,6 @@ static enum clnt_stat rpc_rpcb_getport(CLIENT *client,
 			if (rpcerr.re_vers.low > RPCBVERS4)
 				return status;
 			continue;
-		case RPC_PROCUNAVAIL:
 		case RPC_PROGUNAVAIL:
 			continue;
 		default:
@@ -533,10 +532,7 @@ static enum clnt_stat rpc_rpcb_getport(CLIENT *client,
 		}
 	}
 
-        if (s_port == 0)
-		return RPC_PROGNOTREGISTERED;
-
-        return RPC_PROCUNAVAIL;
+	return RPC_PROGNOTREGISTERED;
 }
 
 static enum clnt_stat rpc_getport(struct conn_info *info,


  parent reply	other threads:[~2013-12-24  8:02 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-24  8:02 [PATCH 0/5] fyi, here are the patches that I haven't yet committed Ian Kent
2013-12-24  8:02 ` [PATCH 1/5] autofs-5.0.8 - fix ipv6 link local address handling Ian Kent
2013-12-24  8:02 ` Ian Kent [this message]
2013-12-24  8:02 ` [PATCH 3/5] autofs-5.0.8 - get_nfs_info() should query portmapper if port is not given Ian Kent
2013-12-24  8:02 ` [PATCH 4/5] autofs-5.0.8 - fix rpc_portmap_getport() proto not set Ian Kent
2013-12-24  8:02 ` [PATCH 5/5] autofs-5.0.8 - fix options compare Ian Kent
2013-12-24  8:38 ` [PATCH 0/5] fyi, here are the patches that I haven't yet committed Dennis Lan (dlan)
2013-12-24  9:04   ` Ian Kent
2013-12-24  9:42     ` Dennis Lan (dlan)
2013-12-24 10:34       ` Ian Kent
2013-12-27  6:11         ` Dennis Lan (dlan)
2013-12-27  6:36           ` Dennis Lan (dlan)
2013-12-27  7:30             ` Dennis Lan (dlan)
2013-12-27  8:56               ` Ian Kent
2013-12-28  2:41                 ` Ian Kent
2013-12-28 12:09                   ` Dennis Lan (dlan)
2013-12-29 11:14                     ` Ian Kent
2013-12-29 11:26                       ` Ian Kent
2013-12-30  7:38                         ` Dennis Lan (dlan)
2013-12-29 11:36               ` Ian Kent
2013-12-30  7:44                 ` Dennis Lan (dlan)
2013-12-27  8:50             ` Ian Kent

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131224080217.8321.83919.stgit@perseus.fritz.box \
    --to=raven@themaw.net \
    --cc=autofs@vger.kernel.org \
    --cc=dennis.yxun@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.