dix: invert a loop condition
Change the single if condition in the loop body to a
if (!foo) continue;
and re-indent the rest.
No functional changes.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -718,9 +718,11 @@ TouchRemoveListener(TouchPointInfoPtr ti, XID resource)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < ti->num_listeners; i++) {
|
for (i = 0; i < ti->num_listeners; i++) {
|
||||||
if (ti->listeners[i].listener == resource) {
|
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
|
if (ti->listeners[i].listener != resource)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (ti->listeners[i].grab) {
|
if (ti->listeners[i].grab) {
|
||||||
ti->listeners[i].grab = NULL;
|
ti->listeners[i].grab = NULL;
|
||||||
ti->num_grabs--;
|
ti->num_grabs--;
|
||||||
@@ -733,7 +735,6 @@ TouchRemoveListener(TouchPointInfoPtr ti, XID resource)
|
|||||||
ti->listeners[ti->num_listeners].state = LISTENER_AWAITING_BEGIN;
|
ti->listeners[ti->num_listeners].state = LISTENER_AWAITING_BEGIN;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user