]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Input: Convert comma to semicolon
authorShen Lichuan <shenlichuan@vivo.com>
Wed, 18 Sep 2024 10:45:39 +0000 (03:45 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Sep 2024 10:48:00 +0000 (03:48 -0700)
To ensure code clarity and prevent potential errors, it's advisable
to employ the ';' as a statement separator, except when ',' are
intentionally used for specific purposes.

Signed-off-by: Shen Lichuan <shenlichuan@vivo.com>
Link: https://lore.kernel.org/r/20240918032246.9147-1-shenlichuan@vivo.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c

index 54c57b267b25f7e2b4fc46b53507588a40226b03..3c321671793f226071253da641f876e90da41a17 100644 (file)
@@ -2224,7 +2224,7 @@ static unsigned int input_estimate_events_per_packet(struct input_dev *dev)
                mt_slots = dev->mt->num_slots;
        } else if (test_bit(ABS_MT_TRACKING_ID, dev->absbit)) {
                mt_slots = dev->absinfo[ABS_MT_TRACKING_ID].maximum -
-                          dev->absinfo[ABS_MT_TRACKING_ID].minimum + 1,
+                          dev->absinfo[ABS_MT_TRACKING_ID].minimum + 1;
                mt_slots = clamp(mt_slots, 2, 32);
        } else if (test_bit(ABS_MT_POSITION_X, dev->absbit)) {
                mt_slots = 2;