Commit 4f062c8c authored by Peter Hutterer's avatar Peter Hutterer

evdev: fix a coverity warning

'rc' is possibly unused
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 7e72c8e5
......@@ -497,7 +497,7 @@ evdev_middlebutton_handle_event(struct evdev_device *device,
uint64_t time,
enum evdev_middlebutton_event event)
{
int rc;
int rc = 0;
enum evdev_middlebutton_state current;
current = device->middlebutton.state;
......@@ -545,6 +545,11 @@ evdev_middlebutton_handle_event(struct evdev_device *device,
time,
event);
break;
default:
evdev_log_bug_libinput(device,
"Invalid middle button state %d\n",
current);
break;
}
evdev_log_debug(device,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment