Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dataservices-commonsys
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
vendor
qcom-opensource
dataservices-commonsys
Commits
c3ac7aa5
Commit
c3ac7aa5
authored
9 years ago
by
Linux Build Service Account
Committed by
Gerrit - the friendly Code Review server
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "datatop: remove unused variables"
parents
ad3f8487
3b47d981
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
datatop/src/datatop_gen_poll.c
+4
-0
4 additions, 0 deletions
datatop/src/datatop_gen_poll.c
datatop/src/datatop_stat_poll.c
+1
-2
1 addition, 2 deletions
datatop/src/datatop_stat_poll.c
with
5 additions
and
2 deletions
datatop/src/datatop_gen_poll.c
+
4
−
0
View file @
c3ac7aa5
...
...
@@ -69,6 +69,10 @@ static int get_number_of_values(struct dtop_data_point_gatherer *dpg)
read
=
dt_read_file
(
dpg
->
file
,
&
data
,
DTOP_GEN_SIZE
);
line_len
=
dt_read_line
(
line
,
DTOP_GEN_LINE
,
data
,
DTOP_GEN_SIZE
,
0
);
if
(
read
==
0
)
{
return
0
;
}
if
(
line_len
<
1
)
{
dt_free
(
&
data
);
return
0
;
...
...
This diff is collapsed.
Click to expand it.
datatop/src/datatop_stat_poll.c
+
1
−
2
View file @
c3ac7aa5
...
...
@@ -219,7 +219,7 @@ static void construct_stat_file_dpg(struct dtop_data_point
*/
int
dtop_stat_search
(
struct
dtop_stat_vars
*
storage
)
{
int
i
,
k
,
n
,
sum
;
int
i
,
n
,
sum
;
char
*
data
;
int
*
line_len
=
malloc
(
sizeof
(
int
)
*
storage
->
line_count
);
int
read
;
...
...
@@ -297,7 +297,6 @@ int dtop_stat_search(struct dtop_stat_vars *storage)
count
++
;
}
}
k
=
0
;
/* Calls dpg constructor, dpg will point to the dp struct */
construct_stat_file_dpg
(
data_points
,
storage
,
dp_count
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment