]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
networkBandwidthGenericChecks: Drop useless check
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 12 Aug 2015 08:34:39 +0000 (10:34 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 12 Aug 2015 08:57:36 +0000 (10:57 +0200)
commitf7fba69bd7a6756af75ebfc60da1f8e4e948977e
tree6b68b2bd77f95fd58e4764f4cce5dc39e39ce23b
parentef6b3b625d4af52371542e3de203eaef4001522f
networkBandwidthGenericChecks: Drop useless check

There's a check right at the beginning of the function that
shortcuts if the function was called over all NULL arguments.
However, this was meant just as a fool-proof check so that we
don't crash if function is used in a bad manner. Anyway, it makes
Coverity unhappy as it then thinks any of the arguments could be
NULL. Well, with the current state of the code it can't.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/network/bridge_driver.c