cocci: simplify some if checks

This commit is contained in:
Lennart Poettering
2018-11-16 16:05:29 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent a7891d203c
commit f20db19954
4 changed files with 59 additions and 15 deletions
+1 -3
View File
@@ -2788,10 +2788,8 @@ static int manager_dispatch_timezone_change(
log_debug("inotify event for /etc/localtime");
changed = manager_read_timezone_stat(m);
if (changed < 0)
if (changed <= 0)
return changed;
if (!changed)
return 0;
/* Something changed, restart the watch, to ensure we watch the new /etc/localtime if it changed */
(void) manager_setup_timezone_change(m);