tree-wide: drop unnecessary break in default branch

This commit is contained in:
Yu Watanabe
2025-03-06 11:42:20 +01:00
committed by Zbigniew Jędrzejewski-Szmek
parent c65f40b1a1
commit 5c9feb2d6e
64 changed files with 43 additions and 133 deletions
-1
View File
@@ -1006,7 +1006,6 @@ static int automount_dispatch_io(sd_event_source *s, int fd, uint32_t events, vo
default:
log_unit_error(UNIT(a), "Received unknown automount request %i", packet.hdr.type);
break;
}
return 0;
+1 -1
View File
@@ -2178,7 +2178,7 @@ static int exec_context_serialize(const ExecContext *c, FILE *f) {
break;
default:
break;
;
}
r = serialize_std_out_err(c, f, STDOUT_FILENO);
-1
View File
@@ -1687,7 +1687,6 @@ static int become_shutdown(int objective, int retval) {
case LOG_TARGET_CONSOLE:
default:
command_line[pos++] = "--log-target=console";
break;
};
if (log_get_show_color())
+3 -4
View File
@@ -773,7 +773,7 @@ static void mount_catchup(Unit *u) {
mount_set_state(m, MOUNT_MOUNTING_DONE);
break;
default:
break;
;
}
else
switch (m->state) {
@@ -786,7 +786,7 @@ static void mount_catchup(Unit *u) {
mount_enter_dead(m, MOUNT_SUCCESS, /* flush_result = */ false);
break;
default:
break;
;
}
}
@@ -2242,7 +2242,7 @@ static int mount_process_proc_self_mountinfo(Manager *m) {
break;
default:
break;
;
}
} else if (mount->proc_flags & (MOUNT_PROC_JUST_MOUNTED|MOUNT_PROC_JUST_CHANGED)) {
@@ -2270,7 +2270,6 @@ static int mount_process_proc_self_mountinfo(Manager *m) {
* in case somebody is waiting for this. (e.g. file system ro/rw
* remounts.) */
mount_set_state(mount, mount->state);
break;
}
}
-2
View File
@@ -349,7 +349,6 @@ int mac_smack_setup(bool *loaded_policy) {
break;
default:
log_warning_errno(r, "Failed to load Smack/CIPSO access rules, ignoring: %m");
break;
}
r = write_netlabel_rules("/etc/smack/netlabel.d/");
@@ -365,7 +364,6 @@ int mac_smack_setup(bool *loaded_policy) {
break;
default:
log_warning_errno(r, "Failed to load Smack network host rules: %m, ignoring.");
break;
}
r = write_onlycap_list();
+2 -6
View File
@@ -1190,7 +1190,6 @@ static int swap_process_proc_swaps(Manager *m) {
default:
/* Fire again */
swap_set_state(swap, swap->state);
break;
}
if (swap->what)
@@ -1214,12 +1213,9 @@ static int swap_process_proc_swaps(Manager *m) {
break;
default:
/* Nothing really changed, but let's
* issue an notification call
* nonetheless, in case somebody is
* waiting for this. */
/* Nothing really changed, but let's issue an notification call nonetheless,
* in case somebody is waiting for this. */
swap_set_state(swap, swap->state);
break;
}
}