Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic In icp_init(), initialise the "state" variable be...
details: https://anonhg.NetBSD.org/src/rev/99c0b8fef52a
branches: trunk
changeset: 538510:99c0b8fef52a
user: simonb <simonb%NetBSD.org@localhost>
date: Tue Oct 22 01:25:28 2002 +0000
description:
In icp_init(), initialise the "state" variable before incrementing it.
diffstat:
sys/dev/ic/icp.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 830963f8fe3e -r 99c0b8fef52a sys/dev/ic/icp.c
--- a/sys/dev/ic/icp.c Tue Oct 22 00:25:29 2002 +0000
+++ b/sys/dev/ic/icp.c Tue Oct 22 01:25:28 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: icp.c,v 1.4 2002/09/27 15:37:17 provos Exp $ */
+/* $NetBSD: icp.c,v 1.5 2002/10/22 01:25:28 simonb Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: icp.c,v 1.4 2002/09/27 15:37:17 provos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icp.c,v 1.5 2002/10/22 01:25:28 simonb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -117,6 +117,7 @@
u_int16_t cdev_cnt;
int i, j, state, feat, nsegs, rv, noscsi, nocache;
+ state = 0;
noscsi = 0;
nocache = 0;
Home |
Main Index |
Thread Index |
Old Index