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
nexedi
linux
Commits
3069353b
Commit
3069353b
authored
Apr 23, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] USB: fix devio compiler warnings created by previous patch.
parent
85d0f7fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/usb/core/devio.c
drivers/usb/core/devio.c
+2
-2
No files found.
drivers/usb/core/devio.c
View file @
3069353b
...
...
@@ -875,7 +875,7 @@ static int proc_submiturb(struct dev_state *ps, void __user *arg)
return
-
EINVAL
;
if
(
!
(
ep_desc
=
usb_epnum_to_ep_desc
(
ps
->
dev
,
uurb
.
endpoint
)))
return
-
ENOENT
;
interval
=
1
<<
min
(
(
u8
)
15
,
ep_desc
->
bInterval
-
1
);
interval
=
1
<<
min
(
15
,
ep_desc
->
bInterval
-
1
);
isofrmlen
=
sizeof
(
struct
usbdevfs_iso_packet_desc
)
*
uurb
.
number_of_packets
;
if
(
!
(
isopkt
=
kmalloc
(
isofrmlen
,
GFP_KERNEL
)))
return
-
ENOMEM
;
...
...
@@ -902,7 +902,7 @@ static int proc_submiturb(struct dev_state *ps, void __user *arg)
if
(
!
(
ep_desc
=
usb_epnum_to_ep_desc
(
ps
->
dev
,
uurb
.
endpoint
)))
return
-
ENOENT
;
if
(
ps
->
dev
->
speed
==
USB_SPEED_HIGH
)
interval
=
1
<<
min
(
(
u8
)
15
,
ep_desc
->
bInterval
-
1
);
interval
=
1
<<
min
(
15
,
ep_desc
->
bInterval
-
1
);
else
interval
=
ep_desc
->
bInterval
;
if
(
uurb
.
buffer_length
>
16384
)
...
...
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