Fix uninitialized variable warnings.
This commit is contained in:
parent
f5d3beb305
commit
1cb1045a68
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: ezload.c,v 1.5 2002/07/11 21:14:25 augustss Exp $ */
|
/* $NetBSD: ezload.c,v 1.6 2003/10/25 18:28:31 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: ezload.c,v 1.5 2002/07/11 21:14:25 augustss Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: ezload.c,v 1.6 2003/10/25 18:28:31 christos Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -112,7 +112,7 @@ ezload_download(usbd_device_handle dev, const struct ezdata *rec)
|
||||||
{
|
{
|
||||||
usb_device_request_t req;
|
usb_device_request_t req;
|
||||||
const struct ezdata *ptr;
|
const struct ezdata *ptr;
|
||||||
usbd_status err;
|
usbd_status err = 0;
|
||||||
u_int len, offs;
|
u_int len, offs;
|
||||||
|
|
||||||
DPRINTF(("ezload_down record=%p\n", rec));
|
DPRINTF(("ezload_down record=%p\n", rec));
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: uftdi.c,v 1.14 2003/02/23 04:20:07 simonb Exp $ */
|
/* $NetBSD: uftdi.c,v 1.15 2003/10/25 18:28:31 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||||
|
@ -46,7 +46,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: uftdi.c,v 1.14 2003/02/23 04:20:07 simonb Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: uftdi.c,v 1.15 2003/10/25 18:28:31 christos Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -468,6 +468,8 @@ uftdi_param(void *vsc, int portno, struct termios *t)
|
||||||
return (EINVAL);
|
return (EINVAL);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
return EINVAL;
|
||||||
}
|
}
|
||||||
req.bmRequestType = UT_WRITE_VENDOR_DEVICE;
|
req.bmRequestType = UT_WRITE_VENDOR_DEVICE;
|
||||||
req.bRequest = FTDI_SIO_SET_BAUD_RATE;
|
req.bRequest = FTDI_SIO_SET_BAUD_RATE;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: uhidev.c,v 1.15 2003/07/14 15:47:29 lukem Exp $ */
|
/* $NetBSD: uhidev.c,v 1.16 2003/10/25 18:28:31 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||||
|
@ -42,7 +42,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: uhidev.c,v 1.15 2003/07/14 15:47:29 lukem Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: uhidev.c,v 1.16 2003/10/25 18:28:31 christos Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -309,6 +309,9 @@ uhidev_activate(device_ptr_t self, enum devact act)
|
||||||
&sc->sc_subdevs[i]->sc_dev);
|
&sc->sc_subdevs[i]->sc_dev);
|
||||||
sc->sc_dying = 1;
|
sc->sc_dying = 1;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
rv = 0;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return (rv);
|
return (rv);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: umass.c,v 1.105 2003/09/29 20:04:25 augustss Exp $ */
|
/* $NetBSD: umass.c,v 1.106 2003/10/25 18:28:31 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||||
|
@ -131,7 +131,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
__KERNEL_RCSID(0, "$NetBSD: umass.c,v 1.105 2003/09/29 20:04:25 augustss Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: umass.c,v 1.106 2003/10/25 18:28:31 christos Exp $");
|
||||||
|
|
||||||
#include "atapibus.h"
|
#include "atapibus.h"
|
||||||
#include "scsibus.h"
|
#include "scsibus.h"
|
||||||
|
@ -1643,6 +1643,11 @@ umass_cbi_state(usbd_xfer_handle xfer, usbd_private_handle priv,
|
||||||
case IDB_VALUE_PHASE:
|
case IDB_VALUE_PHASE:
|
||||||
status = STATUS_WIRE_FAILED;
|
status = STATUS_WIRE_FAILED;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
printf("%s: bad status\n",
|
||||||
|
USBDEVNAME(sc->sc_dev));
|
||||||
|
status = -1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
sc->transfer_state = TSTATE_IDLE;
|
sc->transfer_state = TSTATE_IDLE;
|
||||||
|
|
Loading…
Reference in New Issue