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, -- To unsubscribe from this list: send the line "unsubscribe autofs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html