git: 540be39b0b17 - main - tree: Use 1 semicolon at the end of a statement

From: Warner Losh <imp_at_FreeBSD.org>
Date: Thu, 28 Dec 2023 04:10:02 UTC
The branch main has been updated by imp:

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

commit 540be39b0b17843e649f4fcc55076d6232dc03be
Author:     Elyes Haouas <ehaouas@noos.fr>
AuthorDate: 2023-12-28 04:02:07 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-12-28 04:05:47 +0000

    tree: Use 1 semicolon at the end of a statement
    
    Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
    Reviewed by: imp
    Pull Request: https://github.com/freebsd/freebsd-src/pull/889
---
 sbin/ipf/ipmon/ipmon.c         | 2 +-
 sbin/ipf/libipf/interror.c     | 4 ++--
 sbin/ipf/libipf/ipf_dotuning.c | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/sbin/ipf/ipmon/ipmon.c b/sbin/ipf/ipmon/ipmon.c
index d06c7bf71b0a..80d1d406529a 100644
--- a/sbin/ipf/ipmon/ipmon.c
+++ b/sbin/ipf/ipmon/ipmon.c
@@ -578,7 +578,7 @@ dumphex(FILE *log, int dopts, char *buf, int len)
 		}
 
 		if ((j + 1) & 0xf)
-			*t++ = ' ';;
+			*t++ = ' ';
 	}
 
 	if (j & 0xf) {
diff --git a/sbin/ipf/libipf/interror.c b/sbin/ipf/libipf/interror.c
index f59f4f633070..a4c0b1c56b8e 100644
--- a/sbin/ipf/libipf/interror.c
+++ b/sbin/ipf/libipf/interror.c
@@ -527,7 +527,7 @@ find_error(int errnum)
 	ipf_error_entry_t *ie;
 
 	int l = -1, r = IPF_NUM_ERRORS + 1, step;
-	step = (r - l) / 2;;
+	step = (r - l) / 2;
 
 	while (step != 0) {
 		ie = ipf_errors + l + step;
@@ -538,7 +538,7 @@ find_error(int errnum)
 			r = step;
 		else
 			l = step;
-		step = (r - l) / 2;;
+		step = (r - l) / 2;
 	}
 
 	return (NULL);
diff --git a/sbin/ipf/libipf/ipf_dotuning.c b/sbin/ipf/libipf/ipf_dotuning.c
index e435ce035194..74d5dd154aae 100644
--- a/sbin/ipf/libipf/ipf_dotuning.c
+++ b/sbin/ipf/libipf/ipf_dotuning.c
@@ -19,7 +19,7 @@ void ipf_dotuning(int fd, char *tuneargs, ioctlfunc_t iocfn)
 
 	bzero((char *)&tu, sizeof(tu));
 	obj.ipfo_rev = IPFILTER_VERSION;
-	obj.ipfo_size = sizeof(tu);;
+	obj.ipfo_size = sizeof(tu);
 	obj.ipfo_ptr = (void *)&tu;
 	obj.ipfo_type = IPFOBJ_TUNEABLE;