From f0b1dbdc00bda57c62199cbdc44acbadbb1121b0 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Mon, 1 Feb 2010 22:03:33 +0100 Subject: janitor: stick to kernel-style formatting With this commit, the whole code base complies with the kernel format style, and patches can be checked against the kernel-provided ./scripts/checkpatch.pl --- src/gestures.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gestures.c') diff --git a/src/gestures.c b/src/gestures.c index 0b0ba1d..2390d35 100644 --- a/src/gestures.c +++ b/src/gestures.c @@ -34,7 +34,8 @@ void extract_gestures(struct Gestures *gs, struct MTouch* mt) memset(gs, 0, sizeof(struct Gestures)); if (nof == nsf) { for (p = b; p != e; p++) { - if (fs = find_finger(&mt->os, p->id)) { + fs = find_finger(&mt->os, p->id); + if (fs) { gs->dx += p->hw.position_x - fs->hw.position_x; gs->dy += p->hw.position_y - fs->hw.position_y; dn++; -- cgit v1.2.3