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:
parent
4e8bed2933
commit
3b04a85245
3 changed files with 3 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue