mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 00:49:58 +00:00
zebra: Fix paths that have already de-refed ctx
There is no path in some functions where the ctx has not already been de-refed. As such no need to test for it's existence. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
b31a1797c6
commit
d7c9666e06
@ -3799,7 +3799,6 @@ tc_qdisc_update_internal(enum dplane_op_e op,
|
||||
} else {
|
||||
atomic_fetch_add_explicit(&zdplane_info.dg_tcs_errors, 1,
|
||||
memory_order_relaxed);
|
||||
if (ctx)
|
||||
dplane_ctx_free(&ctx);
|
||||
}
|
||||
|
||||
@ -3830,7 +3829,6 @@ tc_class_update_internal(enum dplane_op_e op, struct zebra_tc_class *class)
|
||||
} else {
|
||||
atomic_fetch_add_explicit(&zdplane_info.dg_tcs_errors, 1,
|
||||
memory_order_relaxed);
|
||||
if (ctx)
|
||||
dplane_ctx_free(&ctx);
|
||||
}
|
||||
|
||||
@ -3861,7 +3859,6 @@ tc_filter_update_internal(enum dplane_op_e op, struct zebra_tc_filter *filter)
|
||||
} else {
|
||||
atomic_fetch_add_explicit(&zdplane_info.dg_tcs_errors, 1,
|
||||
memory_order_relaxed);
|
||||
if (ctx)
|
||||
dplane_ctx_free(&ctx);
|
||||
}
|
||||
|
||||
@ -4230,7 +4227,6 @@ done:
|
||||
else {
|
||||
atomic_fetch_add_explicit(&zdplane_info.dg_lsp_errors, 1,
|
||||
memory_order_relaxed);
|
||||
if (ctx)
|
||||
dplane_ctx_free(&ctx);
|
||||
}
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user