From 88280217a4003d40745fabeb18f27bbc00e0cd31 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sun, 24 Apr 2011 18:27:59 +0200 Subject: [PATCH] Remove useless assignments in while() conditions --- src/filescanner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filescanner.c b/src/filescanner.c index fc05f58e..c4c8dd6f 100644 --- a/src/filescanner.c +++ b/src/filescanner.c @@ -861,7 +861,7 @@ process_inotify_dir(struct watch_info *wi, char *path, struct inotify_event *ie) if (ret < 0) 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); } @@ -894,7 +894,7 @@ process_inotify_dir(struct watch_info *wi, char *path, struct inotify_event *ie) if (ret < 0) 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); }