Remove passing of an uninitialized variable found by gcc4.

(The variable was not used by the called function, so remove the
argument completely.)
This commit is contained in:
drochner 2006-05-29 15:17:29 +00:00
parent 3a1bb8a2ff
commit 305932c524
1 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: atppc.c,v 1.20 2006/05/10 10:27:49 drochner Exp $ */ /* $NetBSD: atppc.c,v 1.21 2006/05/29 15:17:29 drochner Exp $ */
/* /*
* Copyright (c) 2001 Alcove - Nicolas Souchu * Copyright (c) 2001 Alcove - Nicolas Souchu
@ -31,7 +31,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: atppc.c,v 1.20 2006/05/10 10:27:49 drochner Exp $"); __KERNEL_RCSID(0, "$NetBSD: atppc.c,v 1.21 2006/05/29 15:17:29 drochner Exp $");
#include "opt_atppc.h" #include "opt_atppc.h"
@ -114,7 +114,7 @@ static void atppc_ecp_read_dma(struct atppc_softc *, unsigned int *,
unsigned char); unsigned char);
static void atppc_ecp_read_pio(struct atppc_softc *, unsigned int *, static void atppc_ecp_read_pio(struct atppc_softc *, unsigned int *,
unsigned char); unsigned char);
static void atppc_ecp_read_error(struct atppc_softc *, const unsigned int); static void atppc_ecp_read_error(struct atppc_softc *);
/* Functions to write bytes to device's output buffer */ /* Functions to write bytes to device's output buffer */
@ -1858,7 +1858,7 @@ atppc_ecp_read(struct atppc_softc *atppc)
if (ecr & ATPPC_FIFO_EMPTY) { if (ecr & ATPPC_FIFO_EMPTY) {
/* Check for invalid state */ /* Check for invalid state */
if (ecr & ATPPC_FIFO_FULL) { if (ecr & ATPPC_FIFO_FULL) {
atppc_ecp_read_error(atppc, worklen); atppc_ecp_read_error(atppc);
break; break;
} }
@ -1905,7 +1905,7 @@ atppc_ecp_read(struct atppc_softc *atppc)
} }
if (atppc->sc_inerr) { if (atppc->sc_inerr) {
atppc_ecp_read_error(atppc, worklen); atppc_ecp_read_error(atppc);
break; break;
} }
@ -1970,7 +1970,7 @@ atppc_ecp_read_pio(struct atppc_softc *atppc, unsigned int *length,
/* Handle errors for ECP reads */ /* Handle errors for ECP reads */
static void static void
atppc_ecp_read_error(struct atppc_softc *atppc, const unsigned int worklen) atppc_ecp_read_error(struct atppc_softc *atppc)
{ {
unsigned char ecr = atppc_r_ecr(atppc); unsigned char ecr = atppc_r_ecr(atppc);