Commit 60d1358e authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Adam Wujek

audit: remove unused max_dly parameter

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 6de8d4d4
......@@ -16,7 +16,6 @@ static struct pp_runtime_opts sim_master_rt_opts = {
.clockAccuracy = PP_DEFAULT_CLOCK_ACCURACY,
.offsetScaledLogVariance = PP_DEFAULT_CLOCK_VARIANCE,
},
.max_dly = PP_DEFAULT_MAX_DELAY,
.flags = PP_DEFAULT_FLAGS,
.ap = PP_DEFAULT_AP,
.ai = PP_DEFAULT_AI,
......
......@@ -43,7 +43,6 @@
* same value as in ptpdv1
*/
#define PP_NR_FOREIGN_RECORDS 5
#define PP_DEFAULT_MAX_DELAY 0
#define PP_DEFAULT_TTL 1
/* We use an array of timeouts, with these indexes */
......
......@@ -16,7 +16,6 @@
*/
struct pp_runtime_opts {
ClockQuality clock_quality;
Integer32 max_dly; /* Maximum number of nanoseconds of delay */
Integer32 ttl;
int flags; /* see below */
Integer16 ap, ai;
......
......@@ -17,7 +17,6 @@ struct pp_runtime_opts __pp_default_rt_opts = {
.clockAccuracy = PP_DEFAULT_CLOCK_ACCURACY,
.offsetScaledLogVariance = PP_DEFAULT_CLOCK_VARIANCE,
},
.max_dly = PP_DEFAULT_MAX_DELAY,
.flags = PP_DEFAULT_FLAGS,
.ap = PP_DEFAULT_AP,
.ai = PP_DEFAULT_AI,
......
......@@ -124,23 +124,6 @@ static int pp_servo_bad_event(struct pp_instance *ppi)
/* Discard meanPathDelays that overflow a second (makes no sense) */
if (mpd->seconds)
return 1;
if (OPTS(ppi)->max_dly) { /* If maxDelay is 0 then it's OFF */
if (m_to_s_dly->seconds || s_to_m_dly->seconds) {
pp_diag(ppi, servo, 1,"servo aborted, delay greater "
"than 1 second\n");
return 1;
}
if (m_to_s_dly->nanoseconds > OPTS(ppi)->max_dly ||
s_to_m_dly->nanoseconds > OPTS(ppi)->max_dly) {
pp_diag(ppi, servo, 1, "servo aborted, delay %d or %d "
"greater than configured maximum %d\n",
(int)m_to_s_dly->nanoseconds,
(int)s_to_m_dly->nanoseconds,
(int)OPTS(ppi)->max_dly);
return 1;
}
}
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment