Don't redeclare s, it's already there.
authorbeck <beck@openbsd.org>
Wed, 26 Apr 2023 10:00:37 +0000 (10:00 +0000)
committerbeck <beck@openbsd.org>
Wed, 26 Apr 2023 10:00:37 +0000 (10:00 +0000)
noticed by miod@
ok kettenis@

sys/nfs/nfs_vnops.c

index 02fa26e..d61f0a4 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: nfs_vnops.c,v 1.192 2023/04/26 09:53:55 beck Exp $    */
+/*     $OpenBSD: nfs_vnops.c,v 1.193 2023/04/26 10:00:37 beck Exp $    */
 /*     $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $   */
 
 /*
@@ -3203,7 +3203,7 @@ nfs_writebp(struct buf *bp, int force)
                        nfs_clearcommit(bp->b_vp->v_mount);
        }
        if (retv) {
-               int s = splbio();
+               s = splbio();
                buf_flip_dma(bp);
                if (force)
                        bp->b_flags |= B_WRITEINPROG;