summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-04-12 18:01:13 +0200
committerLubomir Rintel <lkundrak@v3.sk>2019-04-12 18:03:09 +0200
commitf5f90a0d694633747d141c279f5de4db3109732f (patch)
tree78cc73ebbea0482cef82e0aac19f902d98f70053
parent817b55cf063b8244c2288c39af6a94da475083d9 (diff)
downloadNetworkManager-f5f90a0d694633747d141c279f5de4db3109732f.tar.gz
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.
-rw-r--r--libnm-core/nm-utils.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c
index 68c6647784..84e35546af 100644
--- a/libnm-core/nm-utils.c
+++ b/libnm-core/nm-utils.c
@@ -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;