From: Lennart Poettering Date: Mon, 22 Aug 2022 11:37:15 +0000 (+0200) Subject: bless-boot: remove a bunch of 'else' X-Git-Tag: v252-rc1~363^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c06103be6415b63751039ebe1246575f45d00eb1;p=thirdparty%2Fsystemd.git bless-boot: remove a bunch of 'else' --- diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c index a0f347bddf5..554a716d8a8 100644 --- a/src/boot/bless-boot.c +++ b/src/boot/bless-boot.c @@ -448,12 +448,12 @@ static int verb_set(int argc, char *argv[], void *userdata) { r = rename_noreplace(fd, skip_slash(source1), fd, skip_slash(target)); if (r == -EEXIST) goto exists; - else if (r == -ENOENT) { + if (r == -ENOENT) { r = rename_noreplace(fd, skip_slash(source2), fd, skip_slash(target)); if (r == -EEXIST) goto exists; - else if (r == -ENOENT) { + if (r == -ENOENT) { if (faccessat(fd, skip_slash(target), F_OK, 0) >= 0) /* Hmm, if we can't find either source file, maybe the destination already exists? */ goto exists;