diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 19:59:55 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-26 00:00:16 +0100 |
commit | 9f2d03544785b7f6cb08fe2d6ad6a2a491d8fb53 (patch) | |
tree | 3f9ca6ee7c91287620e3ce27c8ef9a841fb877a6 /zebra | |
parent | *: return bool from boolean functions (diff) | |
download | frr-9f2d03544785b7f6cb08fe2d6ad6a2a491d8fb53.tar.xz frr-9f2d03544785b7f6cb08fe2d6ad6a2a491d8fb53.zip |
*: remove useless return variables
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/zebra_dplane.c | 4 | ||||
-rw-r--r-- | zebra/zebra_rib.c | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 928169a86..9aab9ea85 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -1039,8 +1039,6 @@ static int dplane_ctx_pw_init(struct zebra_dplane_ctx *ctx, enum dplane_op_e op, struct zebra_pw *pw) { - int ret = AOK; - if (IS_ZEBRA_DEBUG_DPLANE_DETAIL) zlog_debug("init dplane ctx %s: pw '%s', loc %u, rem %u", dplane_op2str(op), pw->ifname, pw->local_label, @@ -1070,7 +1068,7 @@ static int dplane_ctx_pw_init(struct zebra_dplane_ctx *ctx, ctx->u.pw.fields = pw->data; - return ret; + return AOK; } /* diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 5f9210109..a739b0a68 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -3236,7 +3236,6 @@ void rib_close_table(struct route_table *table) */ static int handle_pw_result(struct zebra_dplane_ctx *ctx) { - int ret = 0; struct zebra_pw *pw; struct zebra_vrf *vrf; @@ -3255,7 +3254,7 @@ static int handle_pw_result(struct zebra_dplane_ctx *ctx) done: - return ret; + return 0; } |