Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
linux-elphel
Commits
721c8ed8
Commit
721c8ed8
authored
May 07, 2015
by
YuriNenakhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanups
parent
ca895095
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
elphel393-mem.c
src/drivers/elphel/elphel393-mem.c
+1
-3
No files found.
src/drivers/elphel/elphel393-mem.c
View file @
721c8ed8
...
...
@@ -79,13 +79,11 @@ static ssize_t get_cache(struct device *dev, struct device_attribute *attr, char
}
static
ssize_t
flush_cache
(
struct
device
*
dev
,
struct
device_attribute
*
attr
,
const
char
*
buf
,
size_t
count
)
{
void
*
startaddr
,
*
endaddr
,
*
bufstart
,
*
bufend
;
void
*
startaddr
,
*
endaddr
;
unsigned
long
long
offset
,
size
;
offset
=
0
;
size
=
0
;
sscanf
(
buf
,
"%lli %lli"
,
&
offset
,
&
size
);
bufstart
=
elphel_buf
.
paddr
;
bufend
=
bufstart
+
PAGE_SIZE
*
elphel_buf
.
size
;
if
(
size
==
0
||
offset
>
elphel_buf
.
size
*
PAGE_SIZE
||
offset
+
PAGE_SIZE
*
size
>
elphel_buf
.
size
*
PAGE_SIZE
)
{
startaddr
=
elphel_buf
.
vaddr
;
...
...
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