]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: remove unnecessary test and allocate a bit earlier
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 20 Apr 2018 15:48:45 +0000 (11:48 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 16 May 2018 13:57:42 +0000 (09:57 -0400)
commit4b85140f5a6eb5b5c2f425940b585a8ace1253e0
tree984f1ca811587e8a8e2ec82257b37568a5a98a5f
parent9d1448357e2a8e3c81ff3bf81bd0ec7eb71798c2
bgpd: remove unnecessary test and allocate a bit earlier

The bgp_info_extra_get call gets the extra pointer, which
is also needed for the setlabels() call, so move the call
to above the setlabels.

Also remove an unnecessary test of a pointer since we
have already dereferenced it by the time we are testing
for it's existence.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_mplsvpn.c