Skip to content

Commit

Permalink
rm unnecessary returns
Browse files Browse the repository at this point in the history
  • Loading branch information
bodono committed Feb 15, 2022
1 parent af3b7ea commit ac6840a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/aa.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ static void set_m(AaWork *a, aa_int len) {
}
}
TIME_TOC
return;
}

/* initialize accel params, in particular x_prev, f_prev, g_prev */
Expand Down Expand Up @@ -278,7 +277,6 @@ static void update_accel_params(const aa_float *x, const aa_float *f, AaWork *a,
a->norm_g = BLAS(nrm2)(&bdim, a->g, &one);

TIME_TOC
return;
}

/* f = (1-relaxation) * \sum_i a_i x_i + relaxation * \sum_i a_i f_i */
Expand Down Expand Up @@ -493,7 +491,6 @@ void aa_finish(AaWork *a) {
}
free(a);
}
return;
}

void aa_reset(AaWork *a) {
Expand All @@ -502,7 +499,6 @@ void aa_reset(AaWork *a) {
printf("AA reset.\n");
}
a->iter = 0;
return;
}

#endif

0 comments on commit ac6840a

Please sign in to comment.