From: Yu Watanabe Date: Sat, 3 Sep 2022 15:01:09 +0000 (+0900) Subject: bootspec: shorten code a bit X-Git-Tag: v252-rc1~262^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28340719f27b805d5cb6dfbdf4284de8f6880ba7;p=thirdparty%2Fsystemd.git bootspec: shorten code a bit --- 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(