Fix stupid typo in 470989b that triggered panics easily.

Change-Id: Ic998a0ea93141a5399e28dc286eea4e3d40663d6
This commit is contained in:
Thomas Martitz 2014-03-15 02:23:43 +01:00
parent 361aa9263d
commit 915bc09996

View file

@ -49,7 +49,7 @@ static bool do_add_event(unsigned short id, bool oneshot, bool user_data_valid,
for (i = 0; i < MAX_SYS_EVENTS; i++)
{
if (events[i].handler.callback == handler && events[i].id == id
&& (!user_data_valid || (user_data == events[i].handler.callback)))
&& (!user_data_valid || (user_data == events[i].handler.user_data)))
return false;
}
@ -89,7 +89,7 @@ void do_remove_event(unsigned short id, bool user_data_valid,
for (i = 0; i < MAX_SYS_EVENTS; i++)
{
if (events[i].id == id && events[i].handler.callback == handler
&& (!user_data_valid || (user_data == events[i].handler.callback)))
&& (!user_data_valid || (user_data == events[i].handler.user_data)))
{
events[i].handler.callback = NULL;
return;