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:
Barnabás Pőcze 2024-01-07 02:36:05 +01:00
parent 66c7966b75
commit 18cfb808bd
2 changed files with 0 additions and 4 deletions

View file

@ -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;

View file

@ -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;