From 28340719f27b805d5cb6dfbdf4284de8f6880ba7 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 4 Sep 2022 00:01:09 +0900 Subject: [PATCH] bootspec: shorten code a bit --- src/shared/bootspec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 8927f750fdb..33f2ea66525 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -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( -- 2.47.3