From e5d9888ff1a6607fce03ca6933043b11b6a462f2 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 25 Oct 2003 18:39:40 +0000 Subject: [PATCH] Fix uninitialized variable warning --- sys/arch/x86/x86/bus_dma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/x86/x86/bus_dma.c b/sys/arch/x86/x86/bus_dma.c index ecf1ed53eb64..5216e421d574 100644 --- a/sys/arch/x86/x86/bus_dma.c +++ b/sys/arch/x86/x86/bus_dma.c @@ -1,4 +1,4 @@ -/* $NetBSD: bus_dma.c,v 1.7 2003/08/07 16:30:34 agc Exp $ */ +/* $NetBSD: bus_dma.c,v 1.8 2003/10/25 18:39:40 christos Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -38,7 +38,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.7 2003/08/07 16:30:34 agc Exp $"); +__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.8 2003/10/25 18:39:40 christos Exp $"); /* * The following is included because _bus_dma_uiomove is derived from @@ -812,7 +812,7 @@ _bus_dma_uiomove(buf, uio, n, direction) int direction; { struct iovec *iov; - int error; + int error = 0; struct proc *p; char *cp; size_t resid, cnt;