tree-wide: drop pointless zero initialization (#16884)

tree-wide: drop pointless zero initialization
This commit is contained in:
fangxiuning
2020-08-28 17:45:54 +02:00
committed by GitHub
parent cd17bb6e71
commit c53aafb7b5
8 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -340,7 +340,7 @@ static int bus_job_allocate_bus_track(Job *j) {
}
int bus_job_coldplug_bus_track(Job *j) {
int r = 0;
int r;
_cleanup_strv_free_ char **deserialized_clients = NULL;
assert(j);
+1 -1
View File
@@ -1149,7 +1149,7 @@ void bus_track_serialize(sd_bus_track *t, FILE *f, const char *prefix) {
}
int bus_track_coldplug(Manager *m, sd_bus_track **t, bool recursive, char **l) {
int r = 0;
int r;
assert(m);
assert(t);
+2 -2
View File
@@ -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);