diff options
| author | sri-mohan1 <sri.mohan@samsung.com> | 2024-03-25 09:24:52 +0530 |
|---|---|---|
| committer | sri-mohan1 <sri.mohan@samsung.com> | 2024-03-26 10:21:45 +0530 |
| commit | 2df51c7fe3d35ff3ac2993487890daa0b189e4f1 (patch) | |
| tree | 8a9736a5fec644f83c53cc12b860692fb13357dc /zebra/zebra_nhg.c | |
| parent | 2501c3a4dc7a7d7643123c91168c121a83f0bb72 (diff) | |
zebra: changes for code maintainability
these changes are for improving the code maintainability and readability
Signed-off-by: sri-mohan1 <sri.mohan@samsung.com>
Diffstat (limited to 'zebra/zebra_nhg.c')
| -rw-r--r-- | zebra/zebra_nhg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_nhg.c b/zebra/zebra_nhg.c index 934b8ba0db..ff97a11c17 100644 --- a/zebra/zebra_nhg.c +++ b/zebra/zebra_nhg.c @@ -1795,8 +1795,8 @@ static struct nexthop *nexthop_set_resolved(afi_t afi, break; } - if (newhop->flags & NEXTHOP_FLAG_ONLINK) - resolved_hop->flags |= NEXTHOP_FLAG_ONLINK; + if (CHECK_FLAG(newhop->flags, NEXTHOP_FLAG_ONLINK)) + SET_FLAG(resolved_hop->flags, NEXTHOP_FLAG_ONLINK); /* Copy labels of the resolved route and the parent resolving to it */ if (policy) { |
