From 8d80561b3414d96641f904d5806a441a772c963c Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 18 Sep 2024 05:21:19 +0000 Subject: [PATCH] remove unneeded semicolons after switch statements --- sys/nfs/nfs_bio.c | 4 ++-- sys/nfs/nfs_serv.c | 6 +++--- sys/nfs/nfs_socket.c | 4 ++-- sys/nfs/nfs_srvcache.c | 4 ++-- sys/nfs/nfs_srvsubs.c | 8 ++++---- sys/nfs/nfs_syscalls.c | 4 ++-- sys/nfs/nfs_vnops.c | 4 ++-- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index 78533f7042c..c91626de950 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_bio.c,v 1.86 2024/05/01 13:15:59 jsg Exp $ */ +/* $OpenBSD: nfs_bio.c,v 1.87 2024/09/18 05:21:19 jsg Exp $ */ /* $NetBSD: nfs_bio.c,v 1.25.4.2 1996/07/08 20:47:04 jtc Exp $ */ /* @@ -616,7 +616,7 @@ nfs_doio(struct buf *bp, struct proc *p) default: panic("nfs_doio: type %x unexpected", vp->v_type); break; - }; + } if (error) { bp->b_flags |= B_ERROR; bp->b_error = error; diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index df2a079d687..ea7b596183f 100644 --- a/sys/nfs/nfs_serv.c +++ b/sys/nfs/nfs_serv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_serv.c,v 1.129 2024/09/11 12:22:34 claudio Exp $ */ +/* $OpenBSD: nfs_serv.c,v 1.130 2024/09/18 05:21:19 jsg Exp $ */ /* $NetBSD: nfs_serv.c,v 1.34 1997/05/12 23:37:12 fvdl Exp $ */ /* @@ -1110,7 +1110,7 @@ nfsrv_create(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, if (nd.ni_vp == NULL) va.va_mode = 0; break; - }; + } va.va_type = VREG; } else { sp = (struct nfsv2_sattr *)nfsm_dissect(&info, NFSX_V2SATTR); @@ -1133,7 +1133,7 @@ nfsrv_create(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp, break; default: break; - }; + } } /* diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c index 8dc32b230e5..2235a0aefb4 100644 --- a/sys/nfs/nfs_socket.c +++ b/sys/nfs/nfs_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_socket.c,v 1.153 2024/09/11 12:22:34 claudio Exp $ */ +/* $OpenBSD: nfs_socket.c,v 1.154 2024/09/18 05:21:19 jsg Exp $ */ /* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */ /* @@ -1125,7 +1125,7 @@ nfs_rephead(int siz, struct nfsrv_descript *nd, struct nfssvc_sock *slp, *tl = 0; } break; - }; + } } *mrq = mreq; diff --git a/sys/nfs/nfs_srvcache.c b/sys/nfs/nfs_srvcache.c index 297d2d59323..63cc7e7c7bc 100644 --- a/sys/nfs/nfs_srvcache.c +++ b/sys/nfs/nfs_srvcache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_srvcache.c,v 1.31 2024/05/01 13:15:59 jsg Exp $ */ +/* $OpenBSD: nfs_srvcache.c,v 1.32 2024/09/18 05:21:19 jsg Exp $ */ /* $NetBSD: nfs_srvcache.c,v 1.12 1996/02/18 11:53:49 fvdl Exp $ */ /* @@ -204,7 +204,7 @@ nfsrv_getcache(struct nfsrv_descript *nd, struct nfssvc_sock *slp, rp->rc_flag |= RC_NAM; rp->rc_nam = m_copym(nd->nd_nam, 0, M_COPYALL, M_WAIT); break; - }; + } rp->rc_proc = nd->nd_procnum; hash = NFSRCHASH(nd->nd_retxid); LIST_INSERT_HEAD(hash, rp, rc_hash); diff --git a/sys/nfs/nfs_srvsubs.c b/sys/nfs/nfs_srvsubs.c index def0bc7ef6b..a32eac5e13d 100644 --- a/sys/nfs/nfs_srvsubs.c +++ b/sys/nfs/nfs_srvsubs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_srvsubs.c,v 1.1 2024/09/09 03:50:14 jsg Exp $ */ +/* $OpenBSD: nfs_srvsubs.c,v 1.2 2024/09/18 05:21:19 jsg Exp $ */ /* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */ /* @@ -389,7 +389,7 @@ netaddr_match(int family, union nethostaddr *haddr, struct mbuf *nam) break; default: break; - }; + } return (0); } @@ -462,7 +462,7 @@ nfsm_srvsattr(struct mbuf **mp, struct vattr *va, struct mbuf *mrep, va->va_vaflags |= VA_UTIMES_CHANGE; getnanotime(&va->va_atime); break; - }; + } tl = (uint32_t *)nfsm_dissect(&info, NFSX_UNSIGNED); if (tl == NULL) @@ -480,7 +480,7 @@ nfsm_srvsattr(struct mbuf **mp, struct vattr *va, struct mbuf *mrep, va->va_vaflags |= VA_UTIMES_CHANGE; getnanotime(&va->va_mtime); break; - }; + } *dposp = info.nmi_dpos; *mp = info.nmi_md; diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c index 9ec5db001f7..63c33d8aedc 100644 --- a/sys/nfs/nfs_syscalls.c +++ b/sys/nfs/nfs_syscalls.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_syscalls.c,v 1.127 2024/06/26 01:40:49 jsg Exp $ */ +/* $OpenBSD: nfs_syscalls.c,v 1.128 2024/09/18 05:21:19 jsg Exp $ */ /* $NetBSD: nfs_syscalls.c,v 1.19 1996/02/18 11:53:52 fvdl Exp $ */ /* @@ -469,7 +469,7 @@ loop: m_freem(nd->nd_mrep); m_freem(nd->nd_nam2); break; - }; + } if (nd) { pool_put(&nfsrv_descript_pl, nd); diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 8dbf9f0f67f..b9c8230e54d 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vnops.c,v 1.203 2024/09/12 09:04:51 claudio Exp $ */ +/* $OpenBSD: nfs_vnops.c,v 1.204 2024/09/18 05:21:19 jsg Exp $ */ /* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */ /* @@ -653,7 +653,7 @@ nfs_setattr(void *v) tsize = np->n_size; np->n_size = np->n_vattr.va_size = vap->va_size; uvm_vnp_setsize(vp, np->n_size); - }; + } } else if ((vap->va_mtime.tv_nsec != VNOVAL || vap->va_atime.tv_nsec != VNOVAL) && vp->v_type == VREG && -- 2.20.1