datapath: Remove unlikely() for WARN_ON() conditions
authorThomas Graf <tgraf@suug.ch>
Thu, 31 Jul 2014 01:05:01 +0000 (18:05 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 31 Jul 2014 01:13:02 +0000 (18:13 -0700)
No need for the unlikely(), WARN_ON() and BUG_ON() internally use
unlikely() on the condition.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/datapath.h

index f2e8d6b..92ef19f 100644 (file)
@@ -147,7 +147,7 @@ int lockdep_ovsl_is_held(void);
 #define lockdep_ovsl_is_held() 1
 #endif
 
-#define ASSERT_OVSL()          WARN_ON(unlikely(!lockdep_ovsl_is_held()))
+#define ASSERT_OVSL()          WARN_ON(!lockdep_ovsl_is_held())
 #define ovsl_dereference(p)                                    \
        rcu_dereference_protected(p, lockdep_ovsl_is_held())
 #define rcu_dereference_ovsl(p)                                        \