Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
460e95af
Commit
460e95af
authored
Apr 28, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: remove the wait_for_urb function from bfusb driver as it's no longer needed.
parent
f65763d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
drivers/bluetooth/bfusb.c
drivers/bluetooth/bfusb.c
+0
-9
No files found.
drivers/bluetooth/bfusb.c
View file @
460e95af
...
...
@@ -98,14 +98,6 @@ struct bfusb_scb {
static
void
bfusb_tx_complete
(
struct
urb
*
urb
,
struct
pt_regs
*
regs
);
static
void
bfusb_rx_complete
(
struct
urb
*
urb
,
struct
pt_regs
*
regs
);
static
inline
void
bfusb_wait_for_urb
(
struct
urb
*
urb
)
{
while
(
atomic_read
(
&
urb
->
count
)
>
1
)
{
current
->
state
=
TASK_UNINTERRUPTIBLE
;
schedule_timeout
((
5
*
HZ
+
999
)
/
1000
);
}
}
static
struct
urb
*
bfusb_get_completed
(
struct
bfusb
*
bfusb
)
{
struct
sk_buff
*
skb
;
...
...
@@ -132,7 +124,6 @@ static void bfusb_unlink_urbs(struct bfusb *bfusb)
while
((
skb
=
skb_dequeue
(
&
bfusb
->
pending_q
)))
{
urb
=
((
struct
bfusb_scb
*
)
skb
->
cb
)
->
urb
;
usb_unlink_urb
(
urb
);
bfusb_wait_for_urb
(
urb
);
skb_queue_tail
(
&
bfusb
->
completed_q
,
skb
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment