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];
|
||||
} mt_state;
|
||||
|
||||
if (axis == ABS_MT_SLOT)
|
||||
continue;
|
||||
|
||||
if (!libevdev_has_event_code(dev, EV_ABS, axis))
|
||||
if (axis == ABS_MT_SLOT ||
|
||||
!libevdev_has_event_code(dev, EV_ABS, axis))
|
||||
continue;
|
||||
|
||||
mt_state.code = axis;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue