Commit 7995f549 authored by hpi1's avatar hpi1

Cosmetics (indent)

parent a4e31f67
...@@ -222,21 +222,21 @@ void bd_psr_register_cb (BD_REGISTERS *p, void (*callback)(void*,BD_PSR_EVENT*) ...@@ -222,21 +222,21 @@ void bd_psr_register_cb (BD_REGISTERS *p, void (*callback)(void*,BD_PSR_EVENT*)
void bd_psr_unregister_cb(BD_REGISTERS *p, void (*callback)(void*,BD_PSR_EVENT*), void *cb_handle) void bd_psr_unregister_cb(BD_REGISTERS *p, void (*callback)(void*,BD_PSR_EVENT*), void *cb_handle)
{ {
unsigned i = 0; unsigned i = 0;
bd_psr_lock(p); bd_psr_lock(p);
while (i < p->num_cb) { while (i < p->num_cb) {
if (p->cb[i].handle == cb_handle && p->cb[i].cb == callback) { if (p->cb[i].handle == cb_handle && p->cb[i].cb == callback) {
if (--p->num_cb) { if (--p->num_cb) {
memmove(p->cb + i, p->cb + i + 1, sizeof(PSR_CB_DATA) * p->num_cb); memmove(p->cb + i, p->cb + i + 1, sizeof(PSR_CB_DATA) * p->num_cb);
continue; continue;
}
} }
i++;
} }
i++;
}
bd_psr_unlock(p); bd_psr_unlock(p);
} }
/* /*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment