summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r--src/network/networkd-link.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 684e1e5d3d..31b4befd72 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1518,8 +1518,7 @@ int link_save(Link *link) {
assert(link->state_file);
state = link_state_to_string(link->state);
- if (!state)
- goto finish;
+ assert(state);
r = fopen_temporary(link->state_file, &f, &temp_path);
if (r < 0)