diff --git a/sys/dev/acpi/fdc_acpi.c b/sys/dev/acpi/fdc_acpi.c index e31b08552a0e..af089331d490 100644 --- a/sys/dev/acpi/fdc_acpi.c +++ b/sys/dev/acpi/fdc_acpi.c @@ -1,4 +1,4 @@ -/* $NetBSD: fdc_acpi.c,v 1.25 2005/07/11 14:40:00 christos Exp $ */ +/* $NetBSD: fdc_acpi.c,v 1.26 2005/07/11 18:31:12 drochner Exp $ */ /* * Copyright (c) 2002 Jared D. McNeill @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: fdc_acpi.c,v 1.25 2005/07/11 14:40:00 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fdc_acpi.c,v 1.26 2005/07/11 18:31:12 drochner Exp $"); #include "rnd.h" @@ -236,7 +236,7 @@ fdc_acpi_enumerate(struct fdc_acpi_softc *asc) ACPI_BUFFER abuf; ACPI_STATUS rv; UINT32 *p; - int i, drives; + int i, drives = -1; rv = acpi_eval_struct(asc->sc_node->ad_handle, "_FDE", &abuf); if (ACPI_FAILURE(rv)) { @@ -244,7 +244,7 @@ fdc_acpi_enumerate(struct fdc_acpi_softc *asc) printf("%s: failed to evaluate _FDE: %s\n", sc->sc_dev.dv_xname, AcpiFormatException(rv)); #endif - return -1; + return drives; } fde = (ACPI_OBJECT *)abuf.Pointer; if (fde->Type != ACPI_TYPE_BUFFER) {