summaryrefslogtreecommitdiffstats
path: root/apps/gui/list.c
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-10-07 17:31:15 +0000
committerThomas Martitz <kugel@rockbox.org>2011-10-07 17:31:15 +0000
commit42a33a7f70de01b64e2430dc1c989a2937126818 (patch)
tree5bb75e9e4387e3098eeb1cbda55e971ede2d11ba /apps/gui/list.c
parentf86506675e6ad256f10a0b2a73ec39a0768b9f0a (diff)
downloadrockbox-42a33a7f70de01b64e2430dc1c989a2937126818.tar.gz
rockbox-42a33a7f70de01b64e2430dc1c989a2937126818.tar.bz2
rockbox-42a33a7f70de01b64e2430dc1c989a2937126818.zip
Correct left-over assignment.
Also remove unnecessary NULL guard. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30723 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r--apps/gui/list.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index ca3ae02bbd..e42cbb8e64 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -82,9 +82,6 @@ static void list_init_viewports(struct gui_synclist *list)
{
int i, parent_used;
- if (!list)
- return;
-
parent_used = (*list->parent != &parent[SCREEN_MAIN]);
if (!parent_used)
@@ -99,7 +96,7 @@ static void list_init_viewports(struct gui_synclist *list)
#endif
}
}
- list->dirty_tick = false;
+ list->dirty_tick = current_tick;
}
#else
static struct viewport parent[NB_SCREENS] =