summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_nsm.h
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_nsm.h')
-rw-r--r--ospfd/ospf_nsm.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/ospfd/ospf_nsm.h b/ospfd/ospf_nsm.h
index c219ba738..24cf05009 100644
--- a/ospfd/ospf_nsm.h
+++ b/ospfd/ospf_nsm.h
@@ -59,13 +59,7 @@
#define OSPF_NSM_TIMER_ON(T,F,V) thread_add_timer (master, (F), nbr, (V), &(T))
/* Macro for OSPF NSM timer turn off. */
-#define OSPF_NSM_TIMER_OFF(X) \
- do { \
- if (X) { \
- thread_cancel(X); \
- (X) = NULL; \
- } \
- } while (0)
+#define OSPF_NSM_TIMER_OFF(X) thread_cancel(&(X))
/* Macro for OSPF NSM schedule event. */
#define OSPF_NSM_EVENT_SCHEDULE(N, E) \