]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Don't check for NULL when removing chunks 12224/head
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Sat, 29 Oct 2022 15:31:16 +0000 (17:31 +0200)
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Sat, 29 Oct 2022 15:31:16 +0000 (17:31 +0200)
commitefae8c26cbb10762a6d87056f4e443e4043c5e36
treeedf427e5ab6ae5e1884af253066a7ce57248067e
parenta1d5e05fb30075edbdbfbf0ea3a2200dbf77acf2
bgpd: Don't check for NULL when removing chunks

`srv6_locator_chunk_free()` is a wrapper around the `XFREE()` macro.
Passing a NULL pointer to `XFREE()` is safe. Therefore, checking that
the pointer passed to the `srv6_locator_chunk_free()` is not null is
unnecessary.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
bgpd/bgp_vty.c