summaryrefslogtreecommitdiff
path: root/lib/hook.c
diff options
context:
space:
mode:
authorvivek <vivek@cumulusnetworks.com>2018-03-10 04:03:41 +0000
committervivek <vivek@cumulusnetworks.com>2018-03-10 04:03:41 +0000
commit4e262455a252c700f81df75fb8107d112062bba8 (patch)
treefbd55c66eebe78ccb60424e560548d1613aa403a /lib/hook.c
parentbfd498f0dab9a1937c6036cd35ed020b64a69e8f (diff)
parent58e7db106d5907cb129fcc316f02ce0bf34e3885 (diff)
Merge branch 'master' of https://github.com/frrouting/frr into evpn-ipv6-tenant-routing
Conflicts: bgpd/bgp_evpn.c
Diffstat (limited to 'lib/hook.c')
-rw-r--r--lib/hook.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/hook.c b/lib/hook.c
index 1468c4d329..935064f4d2 100644
--- a/lib/hook.c
+++ b/lib/hook.c
@@ -38,9 +38,8 @@ void _hook_register(struct hook *hook, void *funcptr, void *arg, bool has_arg,
he->priority = priority;
for (pos = &hook->entries; *pos; pos = &(*pos)->next)
- if (hook->reverse
- ? (*pos)->priority < priority
- : (*pos)->priority >= priority)
+ if (hook->reverse ? (*pos)->priority < priority
+ : (*pos)->priority >= priority)
break;
he->next = *pos;