mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 01:30:16 +01:00
core/qdisc: drop useless code
The call to nm_utils_parse_variant_attributes() is useless. The following _tc_read_common_opts() call does the same thing. This was probably left in place by accident.
This commit is contained in:
parent
817b55cf06
commit
f5f90a0d69
1 changed files with 0 additions and 8 deletions
|
|
@ -2455,18 +2455,10 @@ nm_utils_tc_qdisc_from_str (const char *str, GError **error)
|
|||
gs_free char *kind = NULL;
|
||||
gs_free char *rest = NULL;
|
||||
NMTCQdisc *qdisc = NULL;
|
||||
gs_unref_hashtable GHashTable *ht = NULL;
|
||||
|
||||
nm_assert (str);
|
||||
nm_assert (!error || !*error);
|
||||
|
||||
ht = nm_utils_parse_variant_attributes (str,
|
||||
' ', ' ', FALSE,
|
||||
tc_object_attribute_spec,
|
||||
error);
|
||||
if (!ht)
|
||||
return NULL;
|
||||
|
||||
if (!_tc_read_common_opts (str, &handle, &parent, &kind, &rest, error))
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue