diff options
| author | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2022-10-11 13:06:39 +0200 |
|---|---|---|
| committer | Carmine Scarpitta <carmine.scarpitta@uniroma2.it> | 2022-10-11 13:06:39 +0200 |
| commit | 944909f4f72bdfaa76a5baa6b9c12f26435eb258 (patch) | |
| tree | bc52d82b8320790175e02f7c142c22cdabe38bff /lib/command_match.c | |
| parent | afd4d90111125e35a6023a2ca27512396a57a33a (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
