mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-25 12:29:18 -05:00
Remove useless assignments in while() conditions
This commit is contained in:
parent
d8f4efe126
commit
88280217a4
@ -861,7 +861,7 @@ process_inotify_dir(struct watch_info *wi, char *path, struct inotify_event *ie)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (((ret = db_watch_enum_fetchwd(&we, &rm_wd)) == 0) && (rm_wd))
|
while ((db_watch_enum_fetchwd(&we, &rm_wd) == 0) && (rm_wd))
|
||||||
{
|
{
|
||||||
inotify_rm_watch(inofd, rm_wd);
|
inotify_rm_watch(inofd, rm_wd);
|
||||||
}
|
}
|
||||||
@ -894,7 +894,7 @@ process_inotify_dir(struct watch_info *wi, char *path, struct inotify_event *ie)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (((ret = db_watch_enum_fetchwd(&we, &rm_wd)) == 0) && (rm_wd))
|
while ((db_watch_enum_fetchwd(&we, &rm_wd) == 0) && (rm_wd))
|
||||||
{
|
{
|
||||||
inotify_rm_watch(inofd, rm_wd);
|
inotify_rm_watch(inofd, rm_wd);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user