projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d862a30
)
Input: MT - avoid comma separated statements
author
Joe Perches
<joe@perches.com>
Tue, 25 Aug 2020 17:06:59 +0000
(10:06 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Tue, 25 Aug 2020 17:26:05 +0000
(10:26 -0700)
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>
drivers/input/input-mt.c
patch
|
blob
|
history
diff --git
a/drivers/input/input-mt.c
b/drivers/input/input-mt.c
index
f699538
..
44fe6f2
100644
(file)
--- a/
drivers/input/input-mt.c
+++ b/
drivers/input/input-mt.c
@@
-323,11
+323,14
@@
static int adjust_dual(int *begin, int step, int *end, int eq, int mu)
p = begin + step;
s = p == end ? f + 1 : *p;
- for (; p != end; p += step)
- if (*p < f)
- s = f, f = *p;
- else if (*p < s)
+ for (; p != end; p += step) {
+ if (*p < f) {
+ s = f;
+ f = *p;
+ } else if (*p < s) {
s = *p;
+ }
+ }
c = (f + s + 1) / 2;
if (c == 0 || (c > mu && (!eq || mu > 0)))