[sr-dev] git:master:fb2ac639: core: removed return never executed

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 5 22:21:29 CET 2019


Module: kamailio
Branch: master
Commit: fb2ac639037cb911162bb61a541976899fa1bdab
URL: https://github.com/kamailio/kamailio/commit/fb2ac639037cb911162bb61a541976899fa1bdab

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-02-05T22:19:34+01:00

core: removed return never executed

---

Modified: src/core/locking.c

---

Diff:  https://github.com/kamailio/kamailio/commit/fb2ac639037cb911162bb61a541976899fa1bdab.diff
Patch: https://github.com/kamailio/kamailio/commit/fb2ac639037cb911162bb61a541976899fa1bdab.patch

---

diff --git a/src/core/locking.c b/src/core/locking.c
index aced1d270c..c03fb15fcd 100644
--- a/src/core/locking.c
+++ b/src/core/locking.c
@@ -107,7 +107,6 @@ rec_lock_set_t* rec_lock_set_alloc(int n)
 		ls->size=n;
 	}
 	return ls;
-	return NULL;
 }
 
 /**
@@ -153,4 +152,4 @@ void rec_lock_set_release(rec_lock_set_t* lset, int i)
 {
 	rec_lock_release(&lset->locks[i]);
 	return;
-}
\ No newline at end of file
+}




More information about the sr-dev mailing list