Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: MT - avoid comma separated statements

Use semicolons and braces.

Signed-off-by: Joe Perches <joe@perches.com>
Link: https://lore.kernel.org/r/02cb394f8c305473c1a783a5ea8425de79fe0ec1.1598331149.git.joe@perches.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Joe Perches and committed by
Dmitry Torokhov
9b5fbad1 d862a306

+7 -4
+7 -4
drivers/input/input-mt.c
··· 323 323 p = begin + step; 324 324 s = p == end ? f + 1 : *p; 325 325 326 - for (; p != end; p += step) 327 - if (*p < f) 328 - s = f, f = *p; 329 - else if (*p < s) 326 + for (; p != end; p += step) { 327 + if (*p < f) { 328 + s = f; 329 + f = *p; 330 + } else if (*p < s) { 330 331 s = *p; 332 + } 333 + } 331 334 332 335 c = (f + s + 1) / 2; 333 336 if (c == 0 || (c > mu && (!eq || mu > 0)))