From c3485a0b159469c0899c76de230f2d36d371909e Mon Sep 17 00:00:00 2001
From: dimitri staessens <dimitri.staessens@intec.ugent.be>
Date: Thu, 19 May 2016 20:33:26 +0200
Subject: ipcpd: shim-udp: removed debug code

some debug code for locking and a sleep check are removed from the
shim-udp.
---
 src/ipcpd/shim-udp/main.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c
index 4f70d053..819c8149 100644
--- a/src/ipcpd/shim-udp/main.c
+++ b/src/ipcpd/shim-udp/main.c
@@ -762,14 +762,6 @@ void ipcp_sig_handler(int sig, siginfo_t * info, void * c)
         default:
                 return;
         }
-
-        LOG_DBGF("Lock check.");
-        rw_lock_wrlock(&_ap_instance->flows_lock);
-        rw_lock_unlock(&_ap_instance->flows_lock);
-        LOG_DBGF("flows_lock passed.");
-        rw_lock_wrlock(&_ipcp->state_lock);
-        rw_lock_unlock(&_ipcp->state_lock);
-        LOG_DBGF("state_lock passed.");
 }
 
 static int ipcp_udp_bootstrap(struct dif_config * conf)
@@ -1358,10 +1350,6 @@ static int ipcp_udp_flow_dealloc(int port_id)
 {
         int fd = -1;
         struct shm_ap_rbuff * rb;
-        struct timespec wait = {0, 1000000};
-
-        /* flow deallocation should wait for 2 MPL */
-        nanosleep(&wait, NULL);
 
         LOG_DBGF("Deallocating flow with port_id %d.", port_id);
 
-- 
cgit v1.2.3