remove unneeded semicolons after switch statements
authorjsg <jsg@openbsd.org>
Wed, 18 Sep 2024 05:21:19 +0000 (05:21 +0000)
committerjsg <jsg@openbsd.org>
Wed, 18 Sep 2024 05:21:19 +0000 (05:21 +0000)
sys/nfs/nfs_bio.c
sys/nfs/nfs_serv.c
sys/nfs/nfs_socket.c
sys/nfs/nfs_srvcache.c
sys/nfs/nfs_srvsubs.c
sys/nfs/nfs_syscalls.c
sys/nfs/nfs_vnops.c

index 78533f7..c91626d 100644 (file)
@@ -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;
index df2a079..ea7b596 100644 (file)
@@ -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;
-               };
+               }
        }
 
        /*
index 8dc32b2..2235a0a 100644 (file)
@@ -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;
index 297d2d5..63cc7e7 100644 (file)
@@ -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);
index def0bc7..a32eac5 100644 (file)
@@ -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;
index 9ec5db0..63c33d8 100644 (file)
@@ -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);
index 8dbf9f0..b9c8230 100644 (file)
@@ -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 &&