diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2018-11-02 22:07:07 -0200 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2018-11-26 17:35:58 -0200 |
| commit | db452508bf3d808a33b3fc04c946d8cc2939bbb7 (patch) | |
| tree | 2dbc95e01dd6e2f4926e34e33d89475809e12dd5 /lib/northbound_sysrepo.c | |
| parent | 5e02643a64fb6aaaf95f6f9049020f392b5563d5 (diff) | |
lib, tools: use CHECK_FLAG/SET_FLAG more often in the northbound code
Cosmetic change to improve code readability a bit. No binary changes.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/northbound_sysrepo.c')
| -rw-r--r-- | lib/northbound_sysrepo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/northbound_sysrepo.c b/lib/northbound_sysrepo.c index 66447ad682..f109f78133 100644 --- a/lib/northbound_sysrepo.c +++ b/lib/northbound_sysrepo.c @@ -739,10 +739,10 @@ static void frr_sr_subscribe_state(const struct lys_node *snode, void *arg1, struct nb_node *nb_node; int ret; - if (!(snode->flags & LYS_CONFIG_R)) + if (!CHECK_FLAG(snode->flags, LYS_CONFIG_R)) return; /* We only need to subscribe to the root of the state subtrees. */ - if (snode->parent && (snode->parent->flags & LYS_CONFIG_R)) + if (snode->parent && CHECK_FLAG(snode->parent->flags, LYS_CONFIG_R)) return; nb_node = snode->priv; |
