summaryrefslogtreecommitdiffstats
path: root/net/openvswitch
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2014-07-30 02:31:08 +0200
committerDavid S. Miller <davem@davemloft.net>2014-07-30 17:41:47 -0700
commit80019d310f9fb4f8c9eeda0a5d76144ad3132fdf (patch)
treeb3abca44d6bdaa3760099bc4be4f7140ca5db82f /net/openvswitch
parent16eecd9be4b05e3216b8b12707aa6f51fb197903 (diff)
downloadop-kernel-dev-80019d310f9fb4f8c9eeda0a5d76144ad3132fdf.zip
op-kernel-dev-80019d310f9fb4f8c9eeda0a5d76144ad3132fdf.tar.gz
net: Remove unlikely() for WARN_ON() conditions
No need for the unlikely(), WARN_ON() and BUG_ON() internally use unlikely() on the condition. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/openvswitch')
-rw-r--r--net/openvswitch/datapath.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/openvswitch/datapath.h b/net/openvswitch/datapath.h
index 7ede507..701b573 100644
--- a/net/openvswitch/datapath.h
+++ b/net/openvswitch/datapath.h
@@ -144,7 +144,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) \
OpenPOWER on IntegriCloud