Skip to contentSkip to conversation

question on smsc95xx

DISCUSSION Oliver Neukum 1 participant 1 message Jan 15, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

I am looking at this code:

static void smsc95xx_async_cmd_callback(struct urb *urb, struct pt_regs *regs)

{
	struct usb_context *usb_context = urb->context;
	struct usbnet *dev = usb_context->dev;
	int status = urb->status;

	if (status < 0)
		devwarn(dev, "async callback failed with %d", status);

	complete(&usb_context->notify);

is there some ultradeep reason for using complete here? I cannot see that serving any purpose whatsoever.

Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html