summaryrefslogtreecommitdiff
path: root/lib/northbound_sysrepo.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/northbound_sysrepo.c')
-rw-r--r--lib/northbound_sysrepo.c4
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;