summaryrefslogtreecommitdiff
path: root/lib/netns_linux.c
diff options
context:
space:
mode:
authoranlan_cs <vic.lan@pica8.com>2022-02-05 22:59:09 -0500
committeranlan_cs <vic.lan@pica8.com>2022-03-12 12:44:47 +0800
commitdf44783078d69db1a154b7a619719340da00621b (patch)
tree6a04800e7c78c268500dbe3f144b2a756504e81f /lib/netns_linux.c
parent44f1c44c2d9a9f975e586bebd5fc01d2148b9182 (diff)
zebra: use "assert" instead of unnecessary check
Since `zvni_map_to_svi_ns()` is used to find and return one specific interface based on passed attributes of SVI, so the two parameters `in_param` and `p_ifp` must not be NULL. Passing NULL `p_ifp` makes no sense, so the check `if (p_ifp)` is unnecessary. So use `assert` to ensure the two parameters, and remove that unnecessary check. Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'lib/netns_linux.c')
0 files changed, 0 insertions, 0 deletions