Fix stupid typo in 470989b
that triggered panics easily.
Change-Id: Ic998a0ea93141a5399e28dc286eea4e3d40663d6
This commit is contained in:
parent
361aa9263d
commit
915bc09996
1 changed files with 2 additions and 2 deletions
|
@ -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++)
|
for (i = 0; i < MAX_SYS_EVENTS; i++)
|
||||||
{
|
{
|
||||||
if (events[i].handler.callback == handler && events[i].id == id
|
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;
|
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++)
|
for (i = 0; i < MAX_SYS_EVENTS; i++)
|
||||||
{
|
{
|
||||||
if (events[i].id == id && events[i].handler.callback == handler
|
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;
|
events[i].handler.callback = NULL;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue