mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-17 23:20:29 +01:00
ifcfg-rh: add comment about unreachable code in write_bridge_vlans()
This commit is contained in:
parent
5b36f215f4
commit
f5685e5bc9
1 changed files with 5 additions and 2 deletions
|
|
@ -1572,8 +1572,11 @@ write_bridge_vlans(NMSetting * setting,
|
|||
|
||||
vlan = vlans->pdata[i];
|
||||
vlan_str = nm_bridge_vlan_to_str(vlan, error);
|
||||
if (!vlan_str)
|
||||
return FALSE;
|
||||
if (!vlan_str) {
|
||||
/* nm_bridge_vlan_to_str() cannot fail (for now). */
|
||||
nm_assert_not_reached();
|
||||
continue;
|
||||
}
|
||||
if (strbuf.len > 0)
|
||||
nm_str_buf_append_c(&strbuf, ',');
|
||||
nm_str_buf_append(&strbuf, nm_utils_escaped_tokens_escape_unnecessary(vlan_str, ","));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue