Cleanup some unused variables

This commit is contained in:
Twinaphex 2020-08-22 18:04:34 +02:00
parent 503131de66
commit a175af4e6a
2 changed files with 1 additions and 4 deletions

View File

@ -3051,7 +3051,7 @@ static bool config_load_file(global_t *global,
snprintf(buf, sizeof(buf), "led%u_map", i + 1); snprintf(buf, sizeof(buf), "led%u_map", i + 1);
/* TODO/FIXME - change of sign - led_map is unsigned */ /* TODO/FIXME - change of sign - led_map is unsigned */
settings->uints.led_map[i] =- 1; settings->uints.led_map[i] = -1;
CONFIG_GET_INT_BASE(conf, settings, uints.led_map[i], buf); CONFIG_GET_INT_BASE(conf, settings, uints.led_map[i], buf);
} }

View File

@ -191,7 +191,6 @@ static bool png_process_ihdr(struct png_ihdr *ihdr)
#else #else
static bool png_process_ihdr(struct png_ihdr *ihdr) static bool png_process_ihdr(struct png_ihdr *ihdr)
{ {
unsigned i;
uint8_t ihdr_depth = ihdr->depth; uint8_t ihdr_depth = ihdr->depth;
switch (ihdr->color_type) switch (ihdr->color_type)
@ -1199,8 +1198,6 @@ void rpng_free(rpng_t *rpng)
bool rpng_start(rpng_t *rpng) bool rpng_start(rpng_t *rpng)
{ {
unsigned i;
if (!rpng) if (!rpng)
return false; return false;