Commit e9bb75be authored by Giorgis Georgakoudis's avatar Giorgis Georgakoudis

Remove pointless asserts

parent 16dad119
......@@ -4436,8 +4436,6 @@ static void traceRP_update_activity(
if( p->traceRP_t_quiet ) {
unsigned n_quiet_intervals = ceil( t_deep_sleep_time/ p->traceRP_t_quiet );
unsigned n_refresh_periods = n_quiet_intervals - 1;
assert(n_quiet_intervals >= 0);
assert(n_refresh_periods >= 0);
*total_deep_sleep_time -= ( n_refresh_periods * p->traceRP_t_refresh );
}
......@@ -4474,8 +4472,6 @@ static void traceRP_update_activity(
if( p->traceRP_t_quiet ) {
unsigned n_quiet_intervals = ceil( t_sleeping / p->traceRP_t_quiet );
unsigned n_refresh_periods = n_quiet_intervals - 1;
assert(n_quiet_intervals >= 0);
assert(n_refresh_periods >= 0);
*total_deep_sleep_time -= ( n_refresh_periods * p->traceRP_t_refresh );
}
......
......@@ -4077,8 +4077,6 @@ static void traceRP_update_activity(
if( p->traceRP_t_quiet ) {
unsigned n_quiet_intervals = ceil( t_deep_sleep_time/ p->traceRP_t_quiet );
unsigned n_refresh_periods = n_quiet_intervals - 1;
assert(n_quiet_intervals >= 0);
assert(n_refresh_periods >= 0);
*total_deep_sleep_time -= ( n_refresh_periods * p->traceRP_t_refresh );
}
......@@ -4115,8 +4113,6 @@ static void traceRP_update_activity(
if( p->traceRP_t_quiet ) {
unsigned n_quiet_intervals = ceil( t_sleeping / p->traceRP_t_quiet );
unsigned n_refresh_periods = n_quiet_intervals - 1;
assert(n_quiet_intervals >= 0);
assert(n_refresh_periods >= 0);
*total_deep_sleep_time -= ( n_refresh_periods * p->traceRP_t_refresh );
}
......
......@@ -2855,8 +2855,6 @@ static void traceRP_update_activity(
if( p->traceRP_t_quiet ) {
unsigned n_quiet_intervals = ceil( t_deep_sleep_time/ p->traceRP_t_quiet );
unsigned n_refresh_periods = n_quiet_intervals - 1;
assert(n_quiet_intervals >= 0);
assert(n_refresh_periods >= 0);
*total_deep_sleep_time -= ( n_refresh_periods * p->traceRP_t_refresh );
}
......@@ -2893,8 +2891,6 @@ static void traceRP_update_activity(
if( p->traceRP_t_quiet ) {
unsigned n_quiet_intervals = ceil( t_sleeping / p->traceRP_t_quiet );
unsigned n_refresh_periods = n_quiet_intervals - 1;
assert(n_quiet_intervals >= 0);
assert(n_refresh_periods >= 0);
*total_deep_sleep_time -= ( n_refresh_periods * p->traceRP_t_refresh );
}
......
......@@ -3548,8 +3548,6 @@ static void traceRP_update_activity(
if( p->traceRP_t_quiet ) {
unsigned n_quiet_intervals = ceil( t_deep_sleep_time/ p->traceRP_t_quiet );
unsigned n_refresh_periods = n_quiet_intervals - 1;
assert(n_quiet_intervals >= 0);
assert(n_refresh_periods >= 0);
*total_deep_sleep_time -= ( n_refresh_periods * p->traceRP_t_refresh );
}
......@@ -3586,8 +3584,6 @@ static void traceRP_update_activity(
if( p->traceRP_t_quiet ) {
unsigned n_quiet_intervals = ceil( t_sleeping / p->traceRP_t_quiet );
unsigned n_refresh_periods = n_quiet_intervals - 1;
assert(n_quiet_intervals >= 0);
assert(n_refresh_periods >= 0);
*total_deep_sleep_time -= ( n_refresh_periods * p->traceRP_t_refresh );
}
......
......@@ -2402,8 +2402,6 @@ static void traceRP_update_activity(
if( p->traceRP_t_quiet ) {
unsigned n_quiet_intervals = ceil( t_deep_sleep_time/ p->traceRP_t_quiet );
unsigned n_refresh_periods = n_quiet_intervals - 1;
assert(n_quiet_intervals >= 0);
assert(n_refresh_periods >= 0);
*total_deep_sleep_time -= ( n_refresh_periods * p->traceRP_t_refresh );
}
......@@ -2440,8 +2438,6 @@ static void traceRP_update_activity(
if( p->traceRP_t_quiet ) {
unsigned n_quiet_intervals = ceil( t_sleeping / p->traceRP_t_quiet );
unsigned n_refresh_periods = n_quiet_intervals - 1;
assert(n_quiet_intervals >= 0);
assert(n_refresh_periods >= 0);
*total_deep_sleep_time -= ( n_refresh_periods * p->traceRP_t_refresh );
}
......
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