mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-20 17:20:05 +01:00
Compress an if statement
No functional changes, just making the code slightly more compressed Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
50ebda0263
commit
388644b22b
1 changed files with 2 additions and 4 deletions
|
|
@ -674,10 +674,8 @@ sync_mt_state(struct libevdev *dev, int create_events)
|
||||||
int32_t val[dev->num_slots];
|
int32_t val[dev->num_slots];
|
||||||
} mt_state;
|
} mt_state;
|
||||||
|
|
||||||
if (axis == ABS_MT_SLOT)
|
if (axis == ABS_MT_SLOT ||
|
||||||
continue;
|
!libevdev_has_event_code(dev, EV_ABS, axis))
|
||||||
|
|
||||||
if (!libevdev_has_event_code(dev, EV_ABS, axis))
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
mt_state.code = axis;
|
mt_state.code = axis;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue