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
45ad1e29
Commit
45ad1e29
authored
Nov 10, 2004
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
USB: fix endian warnings as found by sparse in the rio500.c driver
Signed-off-by:
Greg Kroah-Hartman
<
greg@kroah.com
>
parent
d5e50611
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
drivers/usb/misc/rio500.c
drivers/usb/misc/rio500.c
+5
-9
No files found.
drivers/usb/misc/rio500.c
View file @
45ad1e29
...
@@ -170,13 +170,11 @@ ioctl_rio(struct inode *inode, struct file *file, unsigned int cmd,
...
@@ -170,13 +170,11 @@ ioctl_rio(struct inode *inode, struct file *file, unsigned int cmd,
if
(
result
==
-
ETIMEDOUT
)
if
(
result
==
-
ETIMEDOUT
)
retries
--
;
retries
--
;
else
if
(
result
<
0
)
{
else
if
(
result
<
0
)
{
err
(
"Error executing ioctrl. code = %d"
,
err
(
"Error executing ioctrl. code = %d"
,
result
);
le32_to_cpu
(
result
));
retries
=
0
;
retries
=
0
;
}
else
{
}
else
{
dbg
(
"Executed ioctl. Result = %d (data=%04x)"
,
dbg
(
"Executed ioctl. Result = %d (data=%02x)"
,
le32_to_cpu
(
result
),
result
,
buffer
[
0
]);
le32_to_cpu
(
*
((
long
*
)
buffer
)));
if
(
copy_to_user
(
rio_cmd
.
buffer
,
buffer
,
if
(
copy_to_user
(
rio_cmd
.
buffer
,
buffer
,
rio_cmd
.
length
))
{
rio_cmd
.
length
))
{
free_page
((
unsigned
long
)
buffer
);
free_page
((
unsigned
long
)
buffer
);
...
@@ -239,12 +237,10 @@ ioctl_rio(struct inode *inode, struct file *file, unsigned int cmd,
...
@@ -239,12 +237,10 @@ ioctl_rio(struct inode *inode, struct file *file, unsigned int cmd,
if
(
result
==
-
ETIMEDOUT
)
if
(
result
==
-
ETIMEDOUT
)
retries
--
;
retries
--
;
else
if
(
result
<
0
)
{
else
if
(
result
<
0
)
{
err
(
"Error executing ioctrl. code = %d"
,
err
(
"Error executing ioctrl. code = %d"
,
result
);
le32_to_cpu
(
result
));
retries
=
0
;
retries
=
0
;
}
else
{
}
else
{
dbg
(
"Executed ioctl. Result = %d"
,
dbg
(
"Executed ioctl. Result = %d"
,
result
);
le32_to_cpu
(
result
));
retries
=
0
;
retries
=
0
;
}
}
...
...
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