Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133900
b: refs/heads/master
c: 01a1ac4
h: refs/heads/master
v: v3
  • Loading branch information
Steve Glendinning authored and David S. Miller committed Jan 26, 2009
1 parent 0d159c6 commit d4e6da9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0db155de988031f925096a7df1bf9633790a2c18
refs/heads/master: 01a1ac472f3cd3e24a5f70597346773115ef4586
4 changes: 0 additions & 4 deletions trunk/drivers/net/usb/smsc95xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ struct smsc95xx_priv {

struct usb_context {
struct usb_ctrlrequest req;
struct completion notify;
struct usbnet *dev;
};

Expand Down Expand Up @@ -316,8 +315,6 @@ static void smsc95xx_async_cmd_callback(struct urb *urb, struct pt_regs *regs)
if (status < 0)
devwarn(dev, "async callback failed with %d", status);

complete(&usb_context->notify);

kfree(usb_context);
usb_free_urb(urb);
}
Expand Down Expand Up @@ -348,7 +345,6 @@ static int smsc95xx_write_reg_async(struct usbnet *dev, u16 index, u32 *data)
usb_context->req.wValue = 00;
usb_context->req.wIndex = cpu_to_le16(index);
usb_context->req.wLength = cpu_to_le16(size);
init_completion(&usb_context->notify);

usb_fill_control_urb(urb, dev->udev, usb_sndctrlpipe(dev->udev, 0),
(void *)&usb_context->req, data, size,
Expand Down

0 comments on commit d4e6da9

Please sign in to comment.