diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-25 19:51:33 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-02-26 00:00:16 +0100 |
commit | d8729f8cb55d118c1937b7d001d70d6ea4476e52 (patch) | |
tree | 0890eb18b74ac62411e8a991d0db2d1579042a46 /pbrd/pbr_nht.c | |
parent | Merge pull request #3864 from qlyoung/fix-ospf-mtu-warning-style (diff) | |
download | frr-d8729f8cb55d118c1937b7d001d70d6ea4476e52.tar.xz frr-d8729f8cb55d118c1937b7d001d70d6ea4476e52.zip |
*: use proper bool initializers & fix comparisons
- bools should be initialized with true/false
- bools do not need to be compared
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r-- | pbrd/pbr_nht.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pbrd/pbr_nht.c b/pbrd/pbr_nht.c index 2cba657f6..6a025fd72 100644 --- a/pbrd/pbr_nht.c +++ b/pbrd/pbr_nht.c @@ -740,7 +740,7 @@ uint32_t pbr_nht_get_next_tableid(bool peek) bool found = false; for (i = pbr_nhg_low_table; i <= pbr_nhg_high_table; i++) { - if (nhg_tableid[i] == false) { + if (!nhg_tableid[i]) { found = true; break; } |