diff --git a/sys/ufs/ffs/ffs_softdep.c b/sys/ufs/ffs/ffs_softdep.c index a0087c7e655f..d32a23e5b7b7 100644 --- a/sys/ufs/ffs/ffs_softdep.c +++ b/sys/ufs/ffs/ffs_softdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: ffs_softdep.c,v 1.35 2002/09/27 15:38:04 provos Exp $ */ +/* $NetBSD: ffs_softdep.c,v 1.36 2002/11/24 11:09:13 scw Exp $ */ /* * Copyright 1998 Marshall Kirk McKusick. All Rights Reserved. @@ -33,7 +33,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ffs_softdep.c,v 1.35 2002/09/27 15:38:04 provos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffs_softdep.c,v 1.36 2002/11/24 11:09:13 scw Exp $"); #include #include @@ -344,8 +344,8 @@ sema_get(semap, interlock) struct sema *semap; struct lockit *interlock; { - int s; - + int s = 0; /* Quell an uninitialized variable warning */ + if (semap->value++ > 0) { if (interlock != NULL) s = FREE_LOCK_INTERLOCKED(interlock); diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c index 4bc642d8387b..442b851f8214 100644 --- a/sys/ufs/ffs/ffs_vfsops.c +++ b/sys/ufs/ffs/ffs_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: ffs_vfsops.c,v 1.103 2002/09/28 20:11:08 dbj Exp $ */ +/* $NetBSD: ffs_vfsops.c,v 1.104 2002/11/24 11:09:13 scw Exp $ */ /* * Copyright (c) 1989, 1991, 1993, 1994 @@ -36,7 +36,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.103 2002/09/28 20:11:08 dbj Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.104 2002/11/24 11:09:13 scw Exp $"); #if defined(_KERNEL_OPT) #include "opt_ffs.h" @@ -182,7 +182,7 @@ ffs_mount(mp, path, data, ndp, p) struct nameidata *ndp; struct proc *p; { - struct vnode *devvp; + struct vnode *devvp = NULL; struct ufs_args args; struct ufsmount *ump = NULL; struct fs *fs;