avoid some useless assignments

This commit is contained in:
Wim Taymans 2020-05-20 13:52:10 +02:00
parent 4f60dcadc6
commit eb93f259e0
7 changed files with 10 additions and 13 deletions

View file

@ -82,7 +82,6 @@ static void on_process(void *userdata, struct spa_io_position *position)
struct spa_data *d;
struct spa_pod *pod;
struct spa_pod_control *c;
uint8_t *p;
uint64_t frame;
frame = data->clock_time;
@ -95,7 +94,7 @@ static void on_process(void *userdata, struct spa_io_position *position)
buf = b->buffer;
d = &buf->datas[0];
if ((p = d->data) == NULL)
if (d->data == NULL)
return;
if ((pod = spa_pod_from_data(d->data, d->maxsize, d->chunk->offset, d->chunk->size)) == NULL)