find_device_from_devnode was guarded by HAVE_SYS_INOTIFY_H, alas its
use in process_monitor_event was not, so linking failed.
On the way reduce the scope of a variable (which makes sense per se
and avoids introducing a compiler warning with this change).
--
v3: winebus.sys: Fix the build without HAVE_SYS_INOTIFY_H
https://gitlab.winehq.org/wine/wine/-/merge_requests/1810
The check was dropped in e392e0ac2846edc25610723c19d6a796372017e1, leaving the dwFlags variable unused.
I have no idea if it was indeed unnecessary or if it was dropped by mistake but either we need to keep the check, or we should remove the variable.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/1828