Remove unused return variables

This commit is contained in:
libretroadmin 2022-07-12 18:00:33 +02:00
parent ec70bb84ca
commit 69ddf03c91
3 changed files with 5 additions and 8 deletions

View File

@ -863,7 +863,6 @@ bool net_http_update(struct http_t *state, size_t* progress, size_t* total)
{ {
if (state->error) if (state->error)
{ {
newlen = -1;
state->part = P_ERROR; state->part = P_ERROR;
state->status = -1; state->status = -1;
return true; return true;

View File

@ -717,7 +717,6 @@ error:
static bool rzipstream_write_chunk(rzipstream_t *stream) static bool rzipstream_write_chunk(rzipstream_t *stream)
{ {
unsigned i; unsigned i;
int64_t length;
uint8_t chunk_header_bytes[RZIP_CHUNK_HEADER_SIZE]; uint8_t chunk_header_bytes[RZIP_CHUNK_HEADER_SIZE];
uint32_t deflate_read; uint32_t deflate_read;
uint32_t deflate_written; uint32_t deflate_written;
@ -760,14 +759,14 @@ static bool rzipstream_write_chunk(rzipstream_t *stream)
chunk_header_bytes[1] = (deflate_written >> 8) & 0xFF; chunk_header_bytes[1] = (deflate_written >> 8) & 0xFF;
chunk_header_bytes[0] = deflate_written & 0xFF; chunk_header_bytes[0] = deflate_written & 0xFF;
if ((length = filestream_write( if (filestream_write(
stream->file, chunk_header_bytes, sizeof(chunk_header_bytes))) != stream->file, chunk_header_bytes, sizeof(chunk_header_bytes)) !=
RZIP_CHUNK_HEADER_SIZE) RZIP_CHUNK_HEADER_SIZE)
return false; return false;
/* Write compressed data to file */ /* Write compressed data to file */
if ((length = filestream_write( if (filestream_write(
stream->file, stream->out_buf, deflate_written)) != deflate_written) stream->file, stream->out_buf, deflate_written) != deflate_written)
return false; return false;
/* Reset input buffer pointer */ /* Reset input buffer pointer */

View File

@ -10417,7 +10417,6 @@ static void ozone_populate_entries(void *data,
static void ozone_toggle(void *userdata, bool menu_on) static void ozone_toggle(void *userdata, bool menu_on)
{ {
settings_t *settings = NULL; settings_t *settings = NULL;
bool tmp = false;
ozone_handle_t *ozone = (ozone_handle_t*) userdata; ozone_handle_t *ozone = (ozone_handle_t*) userdata;
if (!ozone) if (!ozone)
@ -10434,7 +10433,7 @@ static void ozone_toggle(void *userdata, bool menu_on)
} }
settings = config_get_ptr(); settings = config_get_ptr();
if ((tmp = !menu_entries_ctl(MENU_ENTRIES_CTL_NEEDS_REFRESH, NULL))) if ((!menu_entries_ctl(MENU_ENTRIES_CTL_NEEDS_REFRESH, NULL)))
menu_driver_ctl(RARCH_MENU_CTL_SET_PREVENT_POPULATE, NULL); menu_driver_ctl(RARCH_MENU_CTL_SET_PREVENT_POPULATE, NULL);
else else
menu_driver_ctl(RARCH_MENU_CTL_UNSET_PREVENT_POPULATE, NULL); menu_driver_ctl(RARCH_MENU_CTL_UNSET_PREVENT_POPULATE, NULL);