mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 18:10:28 +01:00
evdev: localize two variables during quirks handling
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
fa0c3ee388
commit
30502dee1e
1 changed files with 2 additions and 4 deletions
|
|
@ -2088,11 +2088,9 @@ evdev_pre_configure_model_quirks(struct evdev_device *device)
|
|||
}
|
||||
|
||||
if (quirks_get_tuples(q, QUIRK_ATTR_EVENT_CODE_DISABLE, &t)) {
|
||||
int type, code;
|
||||
|
||||
for (size_t i = 0; i < t->ntuples; i++) {
|
||||
type = t->tuples[i].first;
|
||||
code = t->tuples[i].second;
|
||||
int type = t->tuples[i].first;
|
||||
int code = t->tuples[i].second;
|
||||
|
||||
if (code == EVENT_CODE_UNDEFINED)
|
||||
libevdev_disable_event_type(device->evdev,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue