mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-07 07:40:16 +01:00
evdev: fix a coverity warning
'rc' is possibly unused Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
7e72c8e5bb
commit
4f062c8c0d
1 changed files with 6 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue