Quell an uninitialised variable warning.

This commit is contained in:
scw 2002-11-24 11:09:13 +00:00
parent ba1d389688
commit 7009056578
2 changed files with 7 additions and 7 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/buf.h>
@ -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);

View File

@ -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 <sys/cdefs.h>
__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;