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:
Peter Hutterer 2020-02-13 08:28:59 +10:00
parent 50ebda0263
commit 388644b22b

View file

@ -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;