content_flush_save_blocks - cleanup

This commit is contained in:
twinaphex 2016-09-22 14:40:07 +02:00
parent dad9a079c7
commit 4db42db980

View File

@ -400,14 +400,14 @@ static void content_flush_save_blocks(struct sram_block **blocks,
/* Flush back. */
for (i = 0; i < num_blocks; i++)
{
struct sram_block *block = (struct sram_block*)&blocks[i];
if (block->data)
{
retro_ctx_memory_info_t mem_info;
const void *src = NULL;
void *dst = NULL;
struct sram_block *block = (struct sram_block*)&blocks[i];
if (!block->data)
continue;
mem_info.id = block->type;
@ -418,7 +418,6 @@ static void content_flush_save_blocks(struct sram_block **blocks,
if (dst)
memcpy(dst, src, block->size);
}
}
for (i = 0; i < num_blocks; i++)
{