network: Resolve Coverity FORWARD_NULL
network: Resolve Coverity FORWARD_NULL

The following is a long winded way to say this patch is avoiding a
false positive.

Coverity complains that calling networkPlugBandwidth() could eventually
end up with a NULL dereference on iface->bandwidth because in the
networkAllocateActualDevice there's a check of 'iface->bandwidth'
before deciding to try to use the 'portgroup' if it exists or to not
perferm the virNetDevBandwidthCopy if 'bandwidth' is not NULL.

Later in networkPlugBandwidth the 'iface->bandwidth' is sourced from
virDomainNetGetActualBandwidth - which would be either iface->bandwidth
or (preferably) iface->data.network.actual->bandwidth which would have
been filled in from either 'iface->bandwidth' or 'portgroup->bandwidth'
back in networkAllocateActualDevice

There *is* a check in networkCheckBandwidth for the result of the
virDomainNetGetActualBandwidth being NULL and a return 1 based on
that which would cause networkPlugBandwidth to exit properly and thus
never hit the condition that Coverity complains about.

However, since Coverity checks all paths - it somehow believes that
a return of 0 by networkCheckBandwidth in this condition would end
up causing the possible NULL dereference. The "fix" to silence Coverity
is to not have networkCheckBandwidth also call virDomainNetGetActualBandwidth
in order to get the ifaceBand, but rather have it accept it as an argument
which causes Coverity to "see" that it's the exit condition of 1 that won't
have the possible NULL dereference.  Since we're passing that, I added the
passing of iface->mac rather than passing iface as well. This just hopefully
makes sure someone doesn't undo this in the future...

fabianfreyer/libvirt,andreabolognani/libvirt,zippy2/libvirt,agx/libvirt,zippy2/libvirt,datto/libvirt,datto/libvirt,olafhering/libvirt,zippy2/libvirt,jardasgit/libvirt,jfehlig/libvirt,agx/libvirt,nertpinx/libvirt,libvirt/libvirt,fabianfreyer/libvirt,rlaager/libvirt,crobinso/libvirt,eskultety/libvirt,fabianfreyer/libvirt,olafhering/libvirt,agx/libvirt,eskultety/libvirt,taget/libvirt,taget/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,andreabolognani/libvirt,olafhering/libvirt,crobinso/libvirt,rlaager/libvirt,nertpinx/libvirt,jfehlig/libvirt,eskultety/libvirt,taget/libvirt,jardasgit/libvirt,nertpinx/libvirt,libvirt/libvirt,nertpinx/libvirt,jardasgit/libvirt,datto/libvirt,taget/libvirt,jfehlig/libvirt,agx/libvirt,eskultety/libvirt,zippy2/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,libvirt/libvirt,datto/libvirt,crobinso/libvirt,datto/libvirt,VenkatDatta/libvirt,jardasgit/libvirt,rlaager/libvirt,agx/libvirt,taget/libvirt,VenkatDatta/libvirt,eskultety/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,andreabolognani/libvirt,libvirt/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,olafhering/libvirt,nertpinx/libvirt,rlaager/libvirt,crobinso/libvirt,jfehlig/libvirt,rlaager/libvirt