Callers make sure to pass the correct element.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/conf/netdev_bandwidth_conf.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/conf/netdev_bandwidth_conf.c b/src/conf/netdev_bandwidth_conf.c
index 1609b14784..48be9d2f38 100644
--- a/src/conf/netdev_bandwidth_conf.c
+++ b/src/conf/netdev_bandwidth_conf.c
@@ -112,12 +112,6 @@ virNetDevBandwidthParse(virNetDevBandwidth **bandwidth,
def = g_new0(virNetDevBandwidth, 1);
- if (!node || !virXMLNodeNameEqual(node, "bandwidth")) {
- virReportError(VIR_ERR_INVALID_ARG, "%s",
- _("invalid argument supplied"));
- return -1;
- }
-
class_id_prop = virXMLPropString(node, "classID");
if (class_id_prop) {
if (!class_id) {
--
2.40.1