Skip to contentSkip to conversation

: Remove ifdef surrounding BUG_ON

PATCH In review Arnaldo Carvalho de Melo 1 participant 1 message Sep 26, 2007 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 : Remove ifdef surrounding BUG_ON

As suggested by DaveM.

---
 net/dccp/ccids/ccid3.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
net/dccp/ccids/ccid3.h +0 -4
index ae99ec4..0cdc982 100644
@@ -120,9 +120,7 @@ struct ccid3_hc_tx_sock {
 static inline struct ccid3_hc_tx_sock *ccid3_hc_tx_sk(const struct sock *sk)
 {
     struct ccid3_hc_tx_sock *hctx = ccid_priv(dccp_sk(sk)->dccps_hc_tx_ccid);
-#ifdef CONFIG_IP_DCCP_CCID3_DEBUG
     BUG_ON(hctx = NULL);
-#endif
     return hctx;
 }
 
@@ -173,9 +171,7 @@ struct ccid3_hc_rx_sock {
 static inline struct ccid3_hc_rx_sock *ccid3_hc_rx_sk(const struct sock *sk)
 {
     struct ccid3_hc_rx_sock *hcrx = ccid_priv(dccp_sk(sk)->dccps_hc_rx_ccid);
-#ifdef CONFIG_IP_DCCP_CCID3_DEBUG
     BUG_ON(hcrx = NULL);
-#endif
     return hcrx;
 }
 
Signature · 1 line
1.5.2.2