Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
36d48212
Commit
36d48212
authored
Nov 06, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: arch-wrpc: remove useless local variable
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
577ed159
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
wrc_ptp_ppsi.c
arch-wrpc/wrc_ptp_ppsi.c
+4
-8
No files found.
arch-wrpc/wrc_ptp_ppsi.c
View file @
36d48212
...
...
@@ -25,7 +25,7 @@
extern
int32_t
cal_phase_transition
;
int
ptp_mode
=
WRC_MODE_UNKNOWN
;
static
int
ptp_enabled
=
0
,
ptp_forced_stop
=
0
;
static
int
ptp_enabled
=
0
;
static
struct
wr_operations
wrpc_wr_operations
=
{
.
locking_enable
=
wrpc_spll_locking_enable
,
...
...
@@ -228,15 +228,11 @@ int wrc_ptp_update()
last_link_up
=
now_link_up
;
if
(
ptp_enabled
&&
(
!
now_link_up
))
{
wrc_ptp_stop
();
ptp_forced_stop
=
1
;
pp_printf
(
"Link down: PTP stop
\n
"
);
}
else
{
if
(
ptp_forced_stop
)
{
pp_printf
(
"Link up: PTP start
\n
"
);
ptp_forced_stop
=
0
;
wrc_ptp_start
();
}
if
(
!
ptp_enabled
&&
now_link_up
)
{
pp_printf
(
"Link up: PTP start
\n
"
);
wrc_ptp_start
();
}
}
...
...
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