Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 2023 15:12:48 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: fce4b0c51d7c - main - rpcbind: Remove useless return at the end of void function
Message-ID:  <202303021512.322FCmcH038057@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=fce4b0c51d7c2e304df555879046fcc043e69866

commit fce4b0c51d7c2e304df555879046fcc043e69866
Author:     Elyes Haouas <ehaouas@noos.fr>
AuthorDate: 2023-03-02 14:59:07 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-03-02 15:01:39 +0000

    rpcbind: Remove useless return at the end of void function
    
    Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/656
---
 usr.sbin/rpcbind/rpcb_svc_4.c   | 1 -
 usr.sbin/rpcbind/rpcb_svc_com.c | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/usr.sbin/rpcbind/rpcb_svc_4.c b/usr.sbin/rpcbind/rpcb_svc_4.c
index b6ee61771edf..ac96f3c39f8f 100644
--- a/usr.sbin/rpcbind/rpcb_svc_4.c
+++ b/usr.sbin/rpcbind/rpcb_svc_4.c
@@ -245,7 +245,6 @@ done:
 			}
 		}
 	}
-	return;
 }
 
 /*
diff --git a/usr.sbin/rpcbind/rpcb_svc_com.c b/usr.sbin/rpcbind/rpcb_svc_com.c
index 31cdaf96f074..c6b4930d6972 100644
--- a/usr.sbin/rpcbind/rpcb_svc_com.c
+++ b/usr.sbin/rpcbind/rpcb_svc_com.c
@@ -1225,7 +1225,6 @@ send_svcsyserr(SVCXPRT *xprt, struct finfo *fi)
 		xprt_set_caller(xprt, fi);
 		svcerr_systemerr(xprt);
 	}
-	return;
 }
 
 static void
@@ -1318,7 +1317,6 @@ done:
 #endif
 	} else
 		(void) free_slot_by_xid(reply_msg.rm_xid);
-	return;
 }
 
 static void
@@ -1344,7 +1342,6 @@ find_versions(rpcprog_t prog, char *netid, rpcvers_t *lowvp, rpcvers_t *highvp)
 	}
 	*lowvp = lowv;
 	*highvp = highv;
-	return;
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303021512.322FCmcH038057>