mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
spa: alsa,v4l2: simplify inotify read loop exit condition
The removed condition is strictly a subset of the condition that is checked one line below, so remove it.
This commit is contained in:
parent
66c7966b75
commit
18cfb808bd
2 changed files with 0 additions and 4 deletions
|
|
@ -823,8 +823,6 @@ static void impl_on_notify_events(struct spa_source *source)
|
|||
void *p, *e;
|
||||
|
||||
len = read(source->fd, &buf, sizeof(buf));
|
||||
if (len < 0 && errno != EAGAIN)
|
||||
break;
|
||||
if (len <= 0)
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -428,8 +428,6 @@ static void impl_on_notify_events(struct spa_source *source)
|
|||
void *p, *e;
|
||||
|
||||
len = read(source->fd, &buf, sizeof(buf));
|
||||
if (len < 0 && errno != EAGAIN)
|
||||
break;
|
||||
if (len <= 0)
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue