Skip to content

Commit 21cd0c8

Browse files
author
Jiri Svoboda
committed
Avoid flooding log with mouse warnings during system startup.
1 parent 629b480 commit 21cd0c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

uspace/drv/hid/usbhid/mouse/mousedev.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*
2+
* Copyright (c) 2025 Jiri Svoboda
23
* Copyright (c) 2011 Lubos Slovak, Vojtech Horky
34
* Copyright (c) 2018 Ondrej Hlavaty
45
* All rights reserved.
@@ -165,10 +166,8 @@ static void usb_mouse_process_report(usb_hid_dev_t *hid_dev,
165166
{
166167
assert(mouse_dev != NULL);
167168

168-
if (mouse_dev->mouse_sess == NULL) {
169-
usb_log_warning(NAME " No console session.");
169+
if (mouse_dev->mouse_sess == NULL)
170170
return;
171-
}
172171

173172
const usb_hid_report_field_t *move_x = get_mouse_axis_move_field(
174173
hid_dev->report_id, &hid_dev->report,

0 commit comments

Comments
 (0)