spa: v4l2: Remove start_inotify() call from impl_on_fd_events()

The spa_loop_add_source() call for udev event monitoring which uses
impl_on_fd_events() is done from start_monitor() which also unconditionally
calls start_inotify().

Since start_monitor() already always calls start_inotify() there is no
scenario where start_inotify() has not been called yet when
impl_on_fd_events() gets called. So the start_inotify() call in
impl_on_fd_events() is redundant, remove it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
(cherry picked from commit ab245947e5)
This commit is contained in:
Hans de Goede 2024-09-09 14:53:14 +02:00 committed by Robert Mader
parent d679ea840f
commit f45926c38e

View file

@ -495,8 +495,6 @@ static void impl_on_fd_events(struct spa_source *source)
spa_log_debug(this->log, "action %s", action);
start_inotify(this);
if (spa_streq(action, "add") ||
spa_streq(action, "change")) {
process_udev_device(this, ACTION_CHANGE, dev);