small cleanups

resample: remove unused index variable
This commit is contained in:
Wim Taymans 2019-07-08 18:23:22 +02:00
parent 98d10bbd1f
commit 0154e6eaac
6 changed files with 12 additions and 16 deletions

View file

@ -112,7 +112,7 @@ static int impl_peaks_init(struct resample *r)
r->reset = impl_peaks_reset;
d = r->data = calloc(1, sizeof(struct peaks_data) * sizeof(float) * r->channels);
if (r->data == NULL)
return -ENOMEM;
return -errno;
d->i_count = d->o_count = 0;
return 0;