Change-Id: Icc3cfe601082cd83ad1c8818c1e21e7ada014150
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Reviewed-on: http://openocd.zylin.com/154
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
}
if (!processed)
{
- struct versaloon_want_pos_t *tmp, *free_tmp;
+ struct versaloon_want_pos_t *tmp;
- free_tmp = tmp = versaloon_pending[i].pos;
+ tmp = versaloon_pending[i].pos;
while (tmp != NULL)
{
if ((tmp->buff != NULL) && (tmp->size > 0))
memcpy(tmp->buff, versaloon_buf + usbtoxxx_buffer_index
+ tmp->offset, tmp->size);
}
+ struct versaloon_want_pos_t *free_tmp;
free_tmp = tmp;
tmp = tmp->next;
free(free_tmp);