Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166233
b: refs/heads/master
c: 051b982
h: refs/heads/master
i:
  166231: 950fb48
v: v3
  • Loading branch information
Kevin Cernekee authored and David S. Miller committed Sep 22, 2009
1 parent 4aaf8df commit ecc057b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 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: 6f41d12bab6e5ce317b0494f5b3cd0b60e14ebc3
refs/heads/master: 051b982bcc620695de629d29c333c95b66e9b95e
18 changes: 11 additions & 7 deletions trunk/drivers/net/usb/kaweth.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ static int kaweth_control(struct kaweth_device *kaweth,
int timeout)
{
struct usb_ctrlrequest *dr;
int retval;

dbg("kaweth_control()");

Expand All @@ -278,18 +279,21 @@ static int kaweth_control(struct kaweth_device *kaweth,
return -ENOMEM;
}

dr->bRequestType= requesttype;
dr->bRequestType = requesttype;
dr->bRequest = request;
dr->wValue = cpu_to_le16(value);
dr->wIndex = cpu_to_le16(index);
dr->wLength = cpu_to_le16(size);

return kaweth_internal_control_msg(kaweth->dev,
pipe,
dr,
data,
size,
timeout);
retval = kaweth_internal_control_msg(kaweth->dev,
pipe,
dr,
data,
size,
timeout);

kfree(dr);
return retval;
}

/****************************************************************
Expand Down

0 comments on commit ecc057b

Please sign in to comment.