summaryrefslogtreecommitdiff
path: root/lib/hook.c
diff options
context:
space:
mode:
authorMitesh Kanjariya <mitesh@cumulusnetworks.com>2018-03-12 14:47:28 -0700
committerGitHub <noreply@github.com>2018-03-12 14:47:28 -0700
commit9bb3ca515b59b939c5d9941c4fdd4bd2f2dd38d1 (patch)
tree5fb91642f1bbc24e10e74a768f46c659b215205b /lib/hook.c
parent7b1bf203ca189938b41811945fe6a71911574de3 (diff)
parent9d16566bb3fbe7a9e15eb8d0cc51bcc3f7997e50 (diff)
Merge branch 'master' into type5-default-originate
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;