Don't return an uninitialized error code.

This commit is contained in:
thorpej 2000-05-03 18:58:37 +00:00
parent 01e8438aa8
commit 2d66ccbd13
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: adw.c,v 1.16 2000/04/30 18:52:15 dante Exp $ */
/* $NetBSD: adw.c,v 1.17 2000/05/03 18:58:37 thorpej Exp $ */
/*
* Generic driver for the Advanced Systems Inc. SCSI controllers
@ -174,6 +174,7 @@ adw_alloc_carriers(sc)
sc->sc_control->carriers = malloc(ADW_CARRIER_SIZE * ADW_MAX_CARRIER,
M_DEVBUF, M_WAITOK);
if(!sc->sc_control->carriers) {
error = ENOMEM;
printf("%s: malloc() failed in allocating carrier structures,"
" error = %d\n", sc->sc_dev.dv_xname, error);
return (error);
@ -482,6 +483,8 @@ adw_queue_ccb(sc, ccb, retry)
if(!retry)
TAILQ_INSERT_TAIL(&sc->sc_waiting_ccb, ccb, chain);
errcode = ADW_SUCCESS;
while ((ccb = sc->sc_waiting_ccb.tqh_first) != NULL) {
errcode = AdvExeScsiQueue(sc, &ccb->scsiq);