From fe28f17eeb4eb88e09dc63e3bb9a43d23c3d8f67 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 18 Aug 2020 10:57:42 +0200 Subject: [PATCH] Cleanup --- tasks/task_core_backup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/task_core_backup.c b/tasks/task_core_backup.c index b102e7b593..d9f67527db 100644 --- a/tasks/task_core_backup.c +++ b/tasks/task_core_backup.c @@ -322,12 +322,11 @@ static void task_core_backup_handler(retro_task_t *task) break; case CORE_BACKUP_ITERATE: { - int64_t data_read = 0; int64_t data_written = 0; uint8_t buffer[CORE_BACKUP_CHUNK_SIZE]; /* Read a single chunk from the core file */ - data_read = intfstream_read(backup_handle->core_file, buffer, sizeof(buffer)); + int64_t data_read = intfstream_read(backup_handle->core_file, buffer, sizeof(buffer)); if (data_read < 0) {