mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 22:50:29 +00:00
core/namespace: drop unnecessary initializations
This commit is contained in:
committed by
Luca Boccassi
parent
11c89a85eb
commit
57ccd9f6c0
@@ -1396,8 +1396,8 @@ static int apply_one_mount(
|
||||
|
||||
static int make_read_only(const MountEntry *m, char **deny_list, FILE *proc_self_mountinfo) {
|
||||
unsigned long new_flags = 0, flags_mask = 0;
|
||||
bool submounts = false;
|
||||
int r = 0;
|
||||
bool submounts;
|
||||
int r;
|
||||
|
||||
assert(m);
|
||||
assert(proc_self_mountinfo);
|
||||
@@ -1441,8 +1441,8 @@ static int make_read_only(const MountEntry *m, char **deny_list, FILE *proc_self
|
||||
|
||||
static int make_noexec(const MountEntry *m, char **deny_list, FILE *proc_self_mountinfo) {
|
||||
unsigned long new_flags = 0, flags_mask = 0;
|
||||
bool submounts = false;
|
||||
int r = 0;
|
||||
bool submounts;
|
||||
int r;
|
||||
|
||||
assert(m);
|
||||
assert(proc_self_mountinfo);
|
||||
@@ -1474,8 +1474,8 @@ static int make_noexec(const MountEntry *m, char **deny_list, FILE *proc_self_mo
|
||||
}
|
||||
|
||||
static int make_nosuid(const MountEntry *m, FILE *proc_self_mountinfo) {
|
||||
bool submounts = false;
|
||||
int r = 0;
|
||||
bool submounts;
|
||||
int r;
|
||||
|
||||
assert(m);
|
||||
assert(proc_self_mountinfo);
|
||||
|
||||
Reference in New Issue
Block a user