]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
network: Remove null newBandwidth check from networkBandwidthUpdate
authorJohn Ferlan <jferlan@redhat.com>
Tue, 21 Mar 2017 17:33:17 +0000 (13:33 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 22 Mar 2017 17:49:59 +0000 (13:49 -0400)
The prototype requires a NONNULL argument and the only caller passes in
a non-null parameter. Besides the "else if" condition would deref it anyway.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/network/bridge_driver.c

index 0336ece35c2e4f81c884db0d7be54ad480125849..875c6f6509b0982ca47a100a3f7e576d8d155188 100644 (file)
@@ -5496,7 +5496,7 @@ networkBandwidthUpdate(virDomainNetDefPtr iface,
     /* Okay, there are three possible scenarios: */
 
     if (ifaceBand && ifaceBand->in && ifaceBand->in->floor &&
-        newBandwidth && newBandwidth->in && newBandwidth->in->floor) {
+        newBandwidth->in && newBandwidth->in->floor) {
         /* Either we just need to update @floor .. */
 
         if (virNetDevBandwidthUpdateRate(network->def->bridge,