diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-04-08 07:57:15 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-04-08 16:15:06 +0200 |
commit | c4efd0f4235d1151a95add06ad5ccb42c7dcff21 (patch) | |
tree | 9aaff71f3b3ae6c23457092f6c78a25deec6adb7 /bgpd/rfapi/rfapi_rib.c | |
parent | Merge pull request #6180 from mjstapp/fix_bgp_ecomm_sa (diff) | |
download | frr-c4efd0f4235d1151a95add06ad5ccb42c7dcff21.tar.xz frr-c4efd0f4235d1151a95add06ad5ccb42c7dcff21.zip |
*: Do not cast to the same type
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/rfapi/rfapi_rib.c')
-rw-r--r-- | bgpd/rfapi/rfapi_rib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/rfapi/rfapi_rib.c b/bgpd/rfapi/rfapi_rib.c index 04a538dc6..95b8582b9 100644 --- a/bgpd/rfapi/rfapi_rib.c +++ b/bgpd/rfapi/rfapi_rib.c @@ -268,8 +268,8 @@ static void rfapi_info_free(struct rfapi_info *goner) if (goner->timer) { struct rfapi_rib_tcb *tcb; - tcb = ((struct thread *)goner->timer)->arg; - thread_cancel((struct thread *)goner->timer); + tcb = goner->timer->arg; + thread_cancel(goner->timer); XFREE(MTYPE_RFAPI_RECENT_DELETE, tcb); goner->timer = NULL; } |