Remove some duplicate empty lines
authorPeter Hutterer <peter.hutterer@who-t.net>
Sun, 15 Apr 2018 22:37:06 +0000 (08:37 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 16 Apr 2018 05:14:23 +0000 (15:14 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
include/linux/input-event-codes.h
src/evdev-debounce.c
src/evdev-fallback.c
src/evdev-mt-touchpad.c
src/evdev.c
test/litest-device-ms-nano-transceiver-mouse.c
test/test-pad.c
test/test-pointer.c
test/test-touchpad-tap.c
tools/libinput-record.c

index f5a8d96e1e098543d7cad6af1d7a77b117701f40..9771e4f870bb9990487a14de77cc15b4a4c97b4c 100644 (file)
 #define ABS_MT_TOOL_X          0x3c    /* Center X tool position */
 #define ABS_MT_TOOL_Y          0x3d    /* Center Y tool position */
 
-
 #define ABS_MAX                        0x3f
 #define ABS_CNT                        (ABS_MAX+1)
 
index c5677e5153b15ba15510358f223e9a925f8dfd35..6f53cdf838342a4a7c9cf5ccf80e0739d74e9698 100644 (file)
@@ -34,7 +34,6 @@
      'filtered' .. event is not sent (but may be sent later)
      'delayed' ... event is sent with wall-clock delay
 
-
    1) P---| R          P normal, R normal
    2) R---| P          R normal, P normal
    3) P---R--| P       P normal, R filtered, delayed, P normal
@@ -61,7 +60,6 @@
    the second event). These cases are currently unhandled.
 */
 
-
 enum debounce_event {
        DEBOUNCE_EVENT_PRESS = 50,
        DEBOUNCE_EVENT_RELEASE,
@@ -522,7 +520,6 @@ fallback_debounce_handle_state(struct fallback_dispatch *dispatch,
                        flushed = false;
                }
 
-
                dispatch->debounce.button_code = changed[i];
                debounce_handle_event(dispatch,
                                      is_down ?
@@ -574,7 +571,6 @@ fallback_init_debounce(struct fallback_dispatch *dispatch)
                return;
        }
 
-
        dispatch->debounce.state = DEBOUNCE_STATE_IS_UP;
 
        snprintf(timer_name,
index 269b3f5a2105d77b253a7dc98a1af509d57a1db2..32184f8a5dc01d048bc4bdf2a575a351a9254fe5 100644 (file)
@@ -211,7 +211,6 @@ fallback_flush_wheels(struct fallback_dispatch *dispatch,
        if (!(device->seat_caps & EVDEV_DEVICE_POINTER))
                return;
 
-
        if (dispatch->wheel.y != 0) {
                wheel_degrees.y = -1 * dispatch->wheel.y *
                                        device->scroll.wheel_click_angle.y;
@@ -830,7 +829,6 @@ fallback_handle_state(struct fallback_dispatch *dispatch,
                                slot->state = SLOT_STATE_NONE;
                        }
 
-
                        slot->dirty = false;
                }
 
@@ -1153,7 +1151,6 @@ fallback_tablet_mode_switch_event(uint64_t time,
            LIBINPUT_SWITCH_TABLET_MODE)
                return;
 
-
        switch (libinput_event_switch_get_switch_state(swev)) {
        case LIBINPUT_SWITCH_STATE_OFF:
                fallback_resume(dispatch, device);
index bdc41a644c61d94dd7471d6cbd7bb3ca5642feb5..7b6825c07bd5dc55729d3082b71b3ddb3031e380 100644 (file)
@@ -182,7 +182,6 @@ tp_detect_wobbling(struct tp_dispatch *tp,
        if (dx > 0) { /* right move */
                static const char r_l_r = 0x5; /* {Right, Left, Right} */
 
-
                t->hysteresis.x_motion_history |= (1 << 2);
                if (t->hysteresis.x_motion_history == r_l_r) {
                        tp->hysteresis.enabled = true;
index 1239a51db0e9ede6172100503bea81d31650ff80..309ec7d28a6e14199d002dab5a5c1da7ac2b003d 100644 (file)
@@ -1194,7 +1194,6 @@ evdev_get_trackpoint_range(struct evdev_device *device)
                       "guessing... see %strackpoints.html\n",
                       HTTP_DOC_LINK);
 
-
        prop = udev_device_get_property_value(device->udev_device,
                                              "POINTINGSTICK_SENSITIVITY");
        if (prop) {
index dc5346375955e2a3b98c02199853903d6a9d3e29..d481cb72eb0c7423dd3ddce52ee152a1acd89383 100644 (file)
@@ -56,4 +56,3 @@ TEST_DEVICE("ms-nano-mouse",
        .absinfo = NULL,
        .events = events,
 )
-
index eaa2bfaad0e6dcc90f24cfa0df96de0bf91d3c62..ca27f82ac888938694f3b5dfa5383eaf472a3e77 100644 (file)
@@ -320,7 +320,6 @@ START_TEST(pad_button_libwacom)
                                               LIBINPUT_BUTTON_STATE_RELEASED);
        }
 
-
        libwacom_destroy(wacom);
        libwacom_database_destroy(db);
 #endif
index 73717aa285f50bdc8311a954d6155c339668301a..d6ff4ffea4368067eb0db9f884a30fe0d1bc45a6 100644 (file)
@@ -2498,7 +2498,6 @@ START_TEST(debounce_spurious_switch_to_otherbutton)
        litest_timeout_debounce();
        libinput_dispatch(li);
 
-
        litest_event(dev, EV_KEY, BTN_LEFT, 0);
        litest_event(dev, EV_SYN, SYN_REPORT, 0);
        /* release is now held back,
index b81decd158c177a2e939b22cd000e54388205e0a..8826678237b237e67949d1d8dc9c694f0cd6f4ff 100644 (file)
@@ -2647,7 +2647,6 @@ START_TEST(touchpad_tap_palm_on_tapped)
                                   BTN_LEFT,
                                   LIBINPUT_BUTTON_STATE_RELEASED);
 
-
        litest_assert_empty_queue(li);
 }
 END_TEST
@@ -2689,7 +2688,6 @@ START_TEST(touchpad_tap_palm_on_tapped_palm_down)
                                   BTN_LEFT,
                                   LIBINPUT_BUTTON_STATE_RELEASED);
 
-
        litest_assert_empty_queue(li);
 }
 END_TEST
@@ -2741,7 +2739,6 @@ START_TEST(touchpad_tap_palm_on_tapped_2fg)
                                   BTN_LEFT,
                                   LIBINPUT_BUTTON_STATE_RELEASED);
 
-
        litest_touch_up(dev, 0);
        litest_assert_empty_queue(li);
 }
@@ -2862,7 +2859,6 @@ START_TEST(touchpad_tap_palm_on_touch_2)
        litest_drain_events(li);
        litest_touch_move_to_extended(dev, this, 50, 50, 50, 50, axes, 1, 1);
 
-
        litest_touch_up(dev, this);
        litest_touch_up(dev, other);
 
@@ -2875,7 +2871,6 @@ START_TEST(touchpad_tap_palm_on_touch_2)
                                   BTN_LEFT,
                                   LIBINPUT_BUTTON_STATE_RELEASED);
 
-
        litest_assert_empty_queue(li);
 }
 END_TEST
@@ -2892,7 +2887,6 @@ START_TEST(touchpad_tap_palm_on_touch_2_retouch)
        int this = which % 2,
            other = (which + 1) % 2;
 
-
        if (!touchpad_has_palm_pressure(dev))
                return;
 
@@ -3076,7 +3070,6 @@ START_TEST(touchpad_tap_palm_after_tap)
        litest_enable_tap(dev->libinput_device);
        litest_drain_events(li);
 
-
        litest_touch_down(dev, 0, 50, 50);
        litest_touch_up(dev, 0);
        libinput_dispatch(li);
@@ -3096,7 +3089,6 @@ START_TEST(touchpad_tap_palm_after_tap)
                                   BTN_LEFT,
                                   LIBINPUT_BUTTON_STATE_RELEASED);
 
-
        litest_assert_empty_queue(li);
 }
 END_TEST
index a71bdfe22ec8c47a07bd25c66cee03b5d647bf5a..f31c7408b4c3e41a067f51c98423241e53d2073f 100644 (file)
@@ -213,7 +213,6 @@ print_evdev_event(struct record_context *ctx, struct input_event *ev)
                static unsigned long last_ms = 0;
                unsigned long time, dt;
 
-
                time = us2ms(tv2us(&ev->time));
                if (last_ms == 0)
                        last_ms = time;
@@ -1020,7 +1019,6 @@ print_bits_absinfo(struct record_context *ctx, struct libevdev *dev)
        indent_pop(ctx);
 }
 
-
 static inline void
 print_bits_codes(struct record_context *ctx,
                 struct libevdev *dev,
@@ -1528,7 +1526,6 @@ mainloop(struct record_context *ctx)
 
        sigprocmask(SIG_UNBLOCK, &mask, NULL);
 
-
        return 0;
 }
 
@@ -1769,7 +1766,6 @@ main(int argc, char **argv)
                        goto out;
                }
 
-
                devices = all_devices();
                d = devices;