Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PPSi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
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
Projects
PPSi
Commits
36d48212
Commit
36d48212
authored
11 years ago
by
Alessandro Rubini
Browse files
Options
Downloads
Patches
Plain Diff
trivial: arch-wrpc: remove useless local variable
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
577ed159
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch-wrpc/wrc_ptp_ppsi.c
+4
-8
4 additions, 8 deletions
arch-wrpc/wrc_ptp_ppsi.c
with
4 additions
and
8 deletions
arch-wrpc/wrc_ptp_ppsi.c
+
4
−
8
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
();
}
}
...
...
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