summaryrefslogtreecommitdiff
path: root/firmware/kernel.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-06-10 02:26:09 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-06-10 02:26:09 +0000
commit0ae6f70fddea4abfc94f5a1929748f681ef22ee1 (patch)
treeba4bee8f5529072731037e4247a2094870160ebb /firmware/kernel.c
parentfc94a92ad1c082c206114029fad108b983f59767 (diff)
downloadrockbox-0ae6f70fddea4abfc94f5a1929748f681ef22ee1.zip
rockbox-0ae6f70fddea4abfc94f5a1929748f681ef22ee1.tar.gz
rockbox-0ae6f70fddea4abfc94f5a1929748f681ef22ee1.tar.bz2
rockbox-0ae6f70fddea4abfc94f5a1929748f681ef22ee1.tar.xz
avoid dereferencing void** to remove warnings when building with -Os
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26733 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/kernel.c')
-rw-r--r--firmware/kernel.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c
index e646c2e..1499402 100644
--- a/firmware/kernel.c
+++ b/firmware/kernel.c
@@ -159,10 +159,9 @@ static void timeout_tick(void)
void timeout_cancel(struct timeout *tmo)
{
int oldlevel = disable_irq_save();
- void **arr = (void **)tmo_list;
- int rc = remove_array_ptr(arr, tmo);
+ int rc = remove_array_ptr((void **)tmo_list, tmo);
- if(rc >= 0 && *arr == NULL)
+ if(rc >= 0 && *tmo_list == NULL)
{
tick_remove_task(timeout_tick); /* Last one - remove task */
}
@@ -193,7 +192,7 @@ void timeout_register(struct timeout *tmo, timeout_cb_type callback,
if(*p == NULL)
{
/* Not present */
- if(*arr == NULL)
+ if(*tmo_list == NULL)
{
tick_add_task(timeout_tick); /* First one - add task */
}