input: silently ignore devices without device-node
We either need to adjust our filters to only receive inputX/eventY events or we simply ignore all other events silently to avoid useless warnings. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
1 parent
7a5f5091f6
commit
1ed4f89164
1 file changed
+1
-3
+1
-3
@@ -309,10 +309,8 @@ static void add_device(struct kmscon_input *input,
|
||||
*/
|
||||
|
||||
node = udev_device_get_devnode(udev_device);
|
||||
if (!node) {
|
||||
log_warning("input: cannot get udev node for input device\n");
|
||||
if (!node)
|
||||
return;
|
||||
}
|
||||
|
||||
value = udev_device_get_property_value(udev_device,
|
||||
"ID_INPUT_KEYBOARD");
|
||||
|
||||
Reference in new issue
Block a user