aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Glendinning <steve.glendinning@smsc.com>2009-01-25 20:53:58 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-25 20:53:58 -0500
commit01a1ac472f3cd3e24a5f70597346773115ef4586 (patch)
treeadd0c623fd4c74e743c89aa0cc588a5e65266710
parent0db155de988031f925096a7df1bf9633790a2c18 (diff)
smsc95xx: remove unused completion struct
Oliver Neukum spotted the useless complete() in our async callback. On closer inspection, the entire completion struct is unused. This patch removes it. Signed-off-by: Steve Glendinning <steve.glendinning@smsc.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/usb/smsc95xx.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c
index 5574abe29c73..26fabefdfd30 100644
--- a/drivers/net/usb/smsc95xx.c
+++ b/drivers/net/usb/smsc95xx.c
@@ -55,7 +55,6 @@ struct smsc95xx_priv {
55 55
56struct usb_context { 56struct usb_context {
57 struct usb_ctrlrequest req; 57 struct usb_ctrlrequest req;
58 struct completion notify;
59 struct usbnet *dev; 58 struct usbnet *dev;
60}; 59};
61 60
@@ -316,8 +315,6 @@ static void smsc95xx_async_cmd_callback(struct urb *urb, struct pt_regs *regs)
316 if (status < 0) 315 if (status < 0)
317 devwarn(dev, "async callback failed with %d", status); 316 devwarn(dev, "async callback failed with %d", status);
318 317
319 complete(&usb_context->notify);
320
321 kfree(usb_context); 318 kfree(usb_context);
322 usb_free_urb(urb); 319 usb_free_urb(urb);
323} 320}
@@ -348,7 +345,6 @@ static int smsc95xx_write_reg_async(struct usbnet *dev, u16 index, u32 *data)
348 usb_context->req.wValue = 00; 345 usb_context->req.wValue = 00;
349 usb_context->req.wIndex = cpu_to_le16(index); 346 usb_context->req.wIndex = cpu_to_le16(index);
350 usb_context->req.wLength = cpu_to_le16(size); 347 usb_context->req.wLength = cpu_to_le16(size);
351 init_completion(&usb_context->notify);
352 348
353 usb_fill_control_urb(urb, dev->udev, usb_sndctrlpipe(dev->udev, 0), 349 usb_fill_control_urb(urb, dev->udev, usb_sndctrlpipe(dev->udev, 0),
354 (void *)&usb_context->req, data, size, 350 (void *)&usb_context->req, data, size,