]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: fix stylistic issue
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 16 Apr 2018 18:50:30 +0000 (14:50 -0400)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 17 Apr 2018 17:58:24 +0000 (13:58 -0400)
Again, use of a macro as a conditional without wrapping in parens...

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
bgpd/rfapi/rfapi_import.c

index 392c878675b4aef3db7937f11c7246acd2c0ff5b..c1af269d3fc7ee15e9c2de2f4bb1e72daac05ae4 100644 (file)
@@ -2802,19 +2802,16 @@ rfapiBiStartWithdrawTimer(struct rfapi_import_table *import_table,
        uint32_t lifetime;
        struct rfapi_withdraw *wcb;
 
-       if
-               CHECK_FLAG(bi->flags, BGP_INFO_REMOVED)
-               {
-                       /*
-                        * Already on the path to being withdrawn,
-                        * should already have a timer set up to
-                        * delete it.
-                        */
-                       vnc_zlog_debug_verbose(
-                               "%s: already being withdrawn, do nothing",
-                               __func__);
-                       return;
-               }
+       if (CHECK_FLAG(bi->flags, BGP_INFO_REMOVED)) {
+               /*
+                * Already on the path to being withdrawn,
+                * should already have a timer set up to
+                * delete it.
+                */
+               vnc_zlog_debug_verbose(
+                       "%s: already being withdrawn, do nothing", __func__);
+               return;
+       }
 
        rfapiGetVncLifetime(bi->attr, &lifetime);
        vnc_zlog_debug_verbose("%s: VNC lifetime is %u", __func__, lifetime);