projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9b7408
)
networkctl: drop one assertion
author
Mike Yuan
<me@yhndnzj.com>
Tue, 21 Nov 2023 13:21:14 +0000
(21:21 +0800)
committer
Mike Yuan
<me@yhndnzj.com>
Sat, 2 Dec 2023 09:04:57 +0000
(17:04 +0800)
If there're no existing drop-ins, the assertions
are unnecessarily triggered.
src/network/networkctl.c
patch
|
blob
|
history
diff --git
a/src/network/networkctl.c
b/src/network/networkctl.c
index d69d37fcd16f828fa19200047931ec80bdf16105..123ae62514dbfd2d87fdd89d829b7b6bade62ced 100644
(file)
--- a/
src/network/networkctl.c
+++ b/
src/network/networkctl.c
@@
-2909,7
+2909,6
@@
static int get_dropin_by_name(
char **ret) {
assert(name);
- assert(dropins);
assert(ret);
STRV_FOREACH(i, dropins)
@@
-3076,7
+3075,6
@@
static int add_config_to_edit(
assert(context);
assert(path);
- assert(!arg_drop_in || dropins);
if (path_startswith(path, "/usr")) {
_cleanup_free_ char *name = NULL;