firewall-util: drop unnecessary string attribute

As `sd_netlink_message_open_container_union()` also appends the string
attribute.
This commit is contained in:
Yu Watanabe
2022-07-23 23:52:42 +09:00
parent 295942cb46
commit 35cca046cf
-4
View File
@@ -84,10 +84,6 @@ static int nfnl_add_open_expr_container(sd_netlink_message *m, const char *name)
if (r < 0)
return r;
r = sd_netlink_message_append_string(m, NFTA_EXPR_NAME, name);
if (r < 0)
return r;
return sd_netlink_message_open_container_union(m, NFTA_EXPR_DATA, name);
}