]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/conf-parser: drop redundant cast to boolean 17130/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 22 Sep 2020 11:05:31 +0000 (13:05 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 22 Sep 2020 16:00:44 +0000 (18:00 +0200)
parse_boolean returns either 0 or 1 or error, and we checked for errors
earlier already.

src/shared/conf-parser.c

index 90f08252ab0d0cef3d62782e95f46b9da4b1fbcb..02a27e3a88695bd12d367694cb817462e389d032 100644 (file)
@@ -703,7 +703,7 @@ int config_parse_tristate(
                 return 0;
         }
 
-        *t = !!k;
+        *t = k;
         return 0;
 }