summaryrefslogtreecommitdiff
path: root/src/core/swap.c
diff options
context:
space:
mode:
authorfangxiuning <53254947+JackFangXN@users.noreply.github.com>2020-08-28 23:45:54 +0800
committerGitHub <noreply@github.com>2020-08-28 17:45:54 +0200
commitc53aafb7b5bbbfd8336b189040e183fdc5394b5a (patch)
tree99435c008707fc762a4e0b4965d15764b6b83fd7 /src/core/swap.c
parentcd17bb6e71c364049b18046a1b20475988de8ff3 (diff)
downloadsystemd-c53aafb7b5bbbfd8336b189040e183fdc5394b5a.tar.gz
tree-wide: drop pointless zero initialization (#16884)
tree-wide: drop pointless zero initialization
Diffstat (limited to 'src/core/swap.c')
-rw-r--r--src/core/swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/swap.c b/src/core/swap.c
index 83ae66c964..e8bf0ad12d 100644
--- a/src/core/swap.c
+++ b/src/core/swap.c
@@ -1425,7 +1425,7 @@ int swap_process_device_new(Manager *m, sd_device *dev) {
_cleanup_free_ char *e = NULL;
const char *dn, *devlink;
Unit *u;
- int r = 0;
+ int r;
assert(m);
assert(dev);
@@ -1463,7 +1463,7 @@ int swap_process_device_new(Manager *m, sd_device *dev) {
int swap_process_device_remove(Manager *m, sd_device *dev) {
const char *dn;
- int r = 0;
+ int r;
Swap *s;
r = sd_device_get_devname(dev, &dn);