ovs-vsctl: Remove redundant checks.
authorJoe Stringer <joestringer@nicira.com>
Tue, 14 Jul 2015 00:33:22 +0000 (17:33 -0700)
committerJoe Stringer <joestringer@nicira.com>
Fri, 17 Jul 2015 17:24:46 +0000 (10:24 -0700)
commit2bb0bea82711750311974c291e98bec6fc0e077f
tree7f1f30ca5ef67ca8a99d86e7dee79c82c9e167a9
parente8eba0ab281efe60e08acb43e3d4dea6481cdd15
ovs-vsctl: Remove redundant checks.

In several places, "br" is dereferenced just before a check such as
"if (br ...)". These checks may be optimised out, and they provide no
additional safety, so this patch removes them.

Found by MIT STACK undefined behaviour checker.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-vsctl.c