]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bootspec: shorten code a bit
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 3 Sep 2022 15:01:09 +0000 (00:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 3 Sep 2022 15:01:09 +0000 (00:01 +0900)
src/shared/bootspec.c

index 8927f750fdb9e0387b284331628e318d7eab9119..33f2ea665256a4116c63434634802c0b6de5e153 100644 (file)
@@ -113,8 +113,7 @@ static int parse_path_one(
         if (r <= 0)
                 return r;
 
-        free_and_replace(*s, c);
-        return 0;
+        return free_and_replace(*s, c);
 }
 
 static int parse_path_strv(