diff options
author | fangxiuning <53254947+JackFangXN@users.noreply.github.com> | 2020-08-28 23:45:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 17:45:54 +0200 |
commit | c53aafb7b5bbbfd8336b189040e183fdc5394b5a (patch) | |
tree | 99435c008707fc762a4e0b4965d15764b6b83fd7 /src/boot | |
parent | cd17bb6e71c364049b18046a1b20475988de8ff3 (diff) | |
download | systemd-c53aafb7b5bbbfd8336b189040e183fdc5394b5a.tar.gz |
tree-wide: drop pointless zero initialization (#16884)
tree-wide: drop pointless zero initialization
Diffstat (limited to 'src/boot')
-rw-r--r-- | src/boot/bootctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 11278219dd..94bd1788f8 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -118,7 +118,7 @@ static int get_file_version(int fd, char **v) { char *buf; const char *s, *e; char *x = NULL; - int r = 0; + int r; assert(fd >= 0); assert(v); @@ -248,7 +248,7 @@ static int print_efi_option(uint16_t id, bool in_order) { _cleanup_free_ char *path = NULL; sd_id128_t partition; bool active; - int r = 0; + int r; r = efi_get_boot_option(id, &title, &partition, &path, &active); if (r < 0) |