tools/probe: Move data_to_copy variable down in scope

Signed-off-by: Jyri Sarha <jyri.sarha@intel.com>
This commit is contained in:
Jyri Sarha 2022-09-23 16:13:44 +03:00 committed by Liam Girdwood
parent e21be99ce6
commit 548de64551
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,6 @@ void parse_data(char *file_in)
struct probe_data_packet *packet;
uint8_t data[DATA_READ_LIMIT];
uint32_t total_data_to_copy = 0;
uint32_t data_to_copy = 0;
uint8_t *w_ptr;
int start, i, j, file;
@ -314,6 +313,7 @@ void parse_data(char *file_in)
}
/* data copying section */
if (total_data_to_copy > 0) {
uint32_t data_to_copy;
/* check if there is enough bytes loaded */
/* or copy partially if not */
if (j + total_data_to_copy > i) {