Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Bricked
flo
Commits
16418bb1
Commit
16418bb1
authored
13 years ago
by
Chris Metcalf
Browse files
Options
Download
Email Patches
Plain Diff
tile-srom.c driver: minor code cleanup
Signed-off-by:
Chris Metcalf
<
cmetcalf@tilera.com
>
parent
e2e110d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/char/tile-srom.c
drivers/char/tile-srom.c
+6
-6
No files found.
drivers/char/tile-srom.c
View file @
16418bb1
...
...
@@ -194,17 +194,17 @@ static ssize_t srom_read(struct file *filp, char __user *buf,
hv_retval
=
_srom_read
(
srom
->
hv_devhdl
,
kernbuf
,
*
f_pos
,
bytes_this_pass
);
if
(
hv_retval
>
0
)
{
if
(
copy_to_user
(
buf
,
kernbuf
,
hv_retval
)
!=
0
)
{
retval
=
-
EFAULT
;
break
;
}
}
else
if
(
hv_retval
<=
0
)
{
if
(
hv_retval
<=
0
)
{
if
(
retval
==
0
)
retval
=
hv_retval
;
break
;
}
if
(
copy_to_user
(
buf
,
kernbuf
,
hv_retval
)
!=
0
)
{
retval
=
-
EFAULT
;
break
;
}
retval
+=
hv_retval
;
*
f_pos
+=
hv_retval
;
buf
+=
hv_retval
;
...
...
This diff is collapsed.
Click to expand it.
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