summaryrefslogtreecommitdiff
path: root/lib/command_match.c
diff options
context:
space:
mode:
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2022-10-11 13:06:39 +0200
committerCarmine Scarpitta <carmine.scarpitta@uniroma2.it>2022-10-11 13:06:39 +0200
commit944909f4f72bdfaa76a5baa6b9c12f26435eb258 (patch)
treebc52d82b8320790175e02f7c142c22cdabe38bff /lib/command_match.c
parentafd4d90111125e35a6023a2ca27512396a57a33a (diff)
bgpd: Don't check for NULL when removing SRv6 SIDs
When an SRv6 locator is unset, all the SRv6 SIDs allocated from the locator are removed. Before freeing the memory allocated for an SRv6 SID, we check if the pointer to the SID is `NULL`. However, checking for `NULL` before freeing memory is useless. This PR aims to improve the code's readability by removing the useless `NULL` checks. Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
Diffstat (limited to 'lib/command_match.c')
0 files changed, 0 insertions, 0 deletions