mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
network: Remove null newBandwidth check from networkBandwidthUpdate
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>
This commit is contained in:
parent
0d73397e5f
commit
802579b5d6
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user