diff options
| author | anlan_cs <vic.lan@pica8.com> | 2022-02-05 22:59:09 -0500 |
|---|---|---|
| committer | anlan_cs <vic.lan@pica8.com> | 2022-03-12 12:44:47 +0800 |
| commit | df44783078d69db1a154b7a619719340da00621b (patch) | |
| tree | 6a04800e7c78c268500dbe3f144b2a756504e81f /lib/mpls.c | |
| parent | 44f1c44c2d9a9f975e586bebd5fc01d2148b9182 (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/mpls.c')
0 files changed, 0 insertions, 0 deletions
