mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05: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.
(cherry picked from commit 18cfb808bd)
This commit is contained in:
parent
2a02ef384d
commit
98f2b18277
2 changed files with 0 additions and 4 deletions
|
|
@ -826,8 +826,6 @@ static void impl_on_notify_events(struct spa_source *source)
|
||||||
void *p, *e;
|
void *p, *e;
|
||||||
|
|
||||||
len = read(source->fd, &buf, sizeof(buf));
|
len = read(source->fd, &buf, sizeof(buf));
|
||||||
if (len < 0 && errno != EAGAIN)
|
|
||||||
break;
|
|
||||||
if (len <= 0)
|
if (len <= 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -428,8 +428,6 @@ static void impl_on_notify_events(struct spa_source *source)
|
||||||
void *p, *e;
|
void *p, *e;
|
||||||
|
|
||||||
len = read(source->fd, &buf, sizeof(buf));
|
len = read(source->fd, &buf, sizeof(buf));
|
||||||
if (len < 0 && errno != EAGAIN)
|
|
||||||
break;
|
|
||||||
if (len <= 0)
|
if (len <= 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue