MFNetBSD: usb_subr.c (1.90), usbdi.c (1.83), usbdivar.h (1.65)
date: 2001/11/10 17:11:38; author: augustss; state: Exp; lines: +1 -2 Get rid of unused abort_handle.
This commit is contained in:
parent
93eb6f1095
commit
eaf587ef2b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: usb_subr.c,v 1.89 2001/11/10 17:10:42 augustss Exp $ */
|
||||
/* $NetBSD: usb_subr.c,v 1.90 2001/11/10 17:11:38 augustss Exp $ */
|
||||
/* $FreeBSD$ */
|
||||
|
||||
/*
|
||||
@ -723,7 +723,6 @@ usbd_setup_pipe(usbd_device_handle dev, usbd_interface_handle iface,
|
||||
p->repeat = 0;
|
||||
p->interval = ival;
|
||||
SIMPLEQ_INIT(&p->queue);
|
||||
usb_callout_init(p->abort_handle);
|
||||
err = dev->bus->methods->open_pipe(p);
|
||||
if (err) {
|
||||
DPRINTFN(-1,("usbd_setup_pipe: endpoint=0x%x failed, error="
|
||||
|
@ -220,12 +220,6 @@ usbd_close_pipe(usbd_pipe_handle pipe)
|
||||
LIST_REMOVE(pipe, next);
|
||||
pipe->endpoint->refcnt--;
|
||||
pipe->methods->close(pipe);
|
||||
#if defined(__NetBSD__) && defined(DIAGNOSTIC)
|
||||
if (callout_pending(&pipe->abort_handle)) {
|
||||
callout_stop(&pipe->abort_handle);
|
||||
printf("usbd_close_pipe: abort_handle pending");
|
||||
}
|
||||
#endif
|
||||
if (pipe->intrxfer != NULL)
|
||||
usbd_free_xfer(pipe->intrxfer);
|
||||
free(pipe, M_USB);
|
||||
|
@ -175,8 +175,6 @@ struct usbd_pipe {
|
||||
char repeat;
|
||||
int interval;
|
||||
|
||||
usb_callout_t abort_handle;
|
||||
|
||||
/* Filled by HC driver. */
|
||||
struct usbd_pipe_methods *methods;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user