diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2022-03-07 14:44:21 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2022-03-09 10:16:07 +1000 |
commit | 395d12d63446a1897dd64f35c2eb603203d55c21 (patch) | |
tree | caa6beb13eb89b3babadd1889a61e2e307093bfd /udev/libinput-fuzz-extract.c | |
parent | 1f1ddbc6dff0cf0451e3c9ac923f9821278560aa (diff) | |
download | libinput-395d12d63446a1897dd64f35c2eb603203d55c21.tar.gz |
util: auto-declare the element variable in ARRAY_FOR_EACH
All cases we have in our code base have an otherwise unused variable to
loop through the array. Let's auto-declare this as part of the loop.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'udev/libinput-fuzz-extract.c')
-rw-r--r-- | udev/libinput-fuzz-extract.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/udev/libinput-fuzz-extract.c b/udev/libinput-fuzz-extract.c index 48ef79ce..6158e357 100644 --- a/udev/libinput-fuzz-extract.c +++ b/udev/libinput-fuzz-extract.c @@ -46,7 +46,6 @@ handle_absfuzz(struct udev_device *device) struct libevdev *evdev = NULL; int fd = -1; int rc; - unsigned int *code; unsigned int axes[] = {ABS_X, ABS_Y, ABS_MT_POSITION_X, @@ -88,7 +87,6 @@ out: static void handle_evdev_abs(struct udev_device *device) { - unsigned int *code; unsigned int axes[] = {ABS_X, ABS_Y, ABS_MT_POSITION_X, |