1
0
Fork 0
forked from len0rd/rockbox

Remove a couple of dead inits and assignments found by the clang-static-analyzer.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29996 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2011-06-12 22:17:45 +00:00
parent 4e8bed2933
commit 3b04a85245
3 changed files with 3 additions and 4 deletions

View file

@ -276,7 +276,6 @@ void option_select_next_val(const struct settings_list *setting,
else if ((setting->flags & F_CHOICE_SETTING) == F_CHOICE_SETTING)
{
struct choice_setting *info = (struct choice_setting *)setting->choice_setting;
val = *value + 1;
if (!previous)
{
val = *value + 1;

View file

@ -559,7 +559,7 @@ bool skin_render_alternator(struct skin_element* element, struct skin_draw_info
if (changed_lines)
{
struct skin_element *current_line = element->children[alternator->current_line];
struct skin_element *current_line;
int start = alternator->current_line;
int try_line = start;
bool suitable = false;
@ -687,7 +687,7 @@ void skin_render(struct gui_wps *gwps, unsigned refresh_mode)
struct wps_data *data = gwps->data;
struct screen *display = gwps->display;
struct skin_element* viewport = data->tree;
struct skin_element* viewport;
struct skin_viewport* skin_viewport;
int old_refresh_mode = refresh_mode;

View file

@ -206,7 +206,7 @@ static unsigned int read_part_line(struct bmp_args *ba)
uint8_t *ibuf;
struct uint8_rgb *buf = (struct uint8_rgb *)(ba->buf);
const struct uint8_rgb *palette = ba->palette;
uint32_t component, data = data;
uint32_t component, data;
int ret;
int i, cols, len;