Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Remove bogus initializer, and fix a typo in a loo...
details: https://anonhg.NetBSD.org/src/rev/1404c156025c
branches: trunk
changeset: 554501:1404c156025c
user: mycroft <mycroft%NetBSD.org@localhost>
date: Wed Oct 29 00:48:15 2003 +0000
description:
Remove bogus initializer, and fix a typo in a loop variable instead.
diffstat:
sys/dev/ic/icp.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 02414dfaf12d -r 1404c156025c sys/dev/ic/icp.c
--- a/sys/dev/ic/icp.c Wed Oct 29 00:34:58 2003 +0000
+++ b/sys/dev/ic/icp.c Wed Oct 29 00:48:15 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: icp.c,v 1.11 2003/10/25 18:35:42 christos Exp $ */
+/* $NetBSD: icp.c,v 1.12 2003/10/29 00:48:15 mycroft Exp $ */
/*-
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -83,7 +83,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: icp.c,v 1.11 2003/10/25 18:35:42 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icp.c,v 1.12 2003/10/29 00:48:15 mycroft Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -137,7 +137,7 @@
struct icp_binfo binfo;
struct icp_ccb *ic;
u_int16_t cdev_cnt;
- int i, j = 0, state, feat, nsegs, rv; /* XXX: gcc */
+ int i, j, state, feat, nsegs, rv;
state = 0;
@@ -360,7 +360,7 @@
*/
gc = (struct icp_getch *)icp->icp_scr;
- for (i = 0; j < binfo.bi_chan_count; j++) {
+ for (j = 0; j < binfo.bi_chan_count; j++) {
if (!icp_cmd(icp, ICP_CACHESERVICE, ICP_IOCTL,
ICP_SCSI_CHAN_CNT | ICP_L_CTRL_PATTERN,
ICP_IO_CHANNEL | ICP_INVALID_CHANNEL,
Home |
Main Index |
Thread Index |
Old Index