From 6d0774f6d0c1c548ad2edb3930a4a88705809df4 Mon Sep 17 00:00:00 2001 From: Markus Pfeiffer Date: Sun, 2 Dec 2012 19:07:42 +0000 Subject: [PATCH] usb4bsd: fix breakage caused by earlier commit --- sys/bus/u4b/usb_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/bus/u4b/usb_device.c b/sys/bus/u4b/usb_device.c index c1f6573035..850ed5bddd 100644 --- a/sys/bus/u4b/usb_device.c +++ b/sys/bus/u4b/usb_device.c @@ -13,7 +13,7 @@ * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MECHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS @@ -323,6 +323,7 @@ usbd_get_endpoint(struct usb_device *udev, uint8_t iface_index, ((udev->ctrl_ep.edesc->bEndpointAddress & ea_mask) == ea_val) && ((udev->ctrl_ep.edesc->bmAttributes & type_mask) == type_val) && (!index)) { + ep = &udev->ctrl_ep; goto found; } return (NULL); -- 2.11.4.GIT