[sr-dev] git:master:f0939447: rabbitmq: removed unreachable code

Daniel-Constantin Mierla miconda at gmail.com
Fri Jul 28 10:30:43 CEST 2017


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-07-28T10:30:19+02:00

rabbitmq: removed unreachable code

---

Modified: src/modules/rabbitmq/utils.c

---

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

---

diff --git a/src/modules/rabbitmq/utils.c b/src/modules/rabbitmq/utils.c
index 251ace13ed..f047262a82 100644
--- a/src/modules/rabbitmq/utils.c
+++ b/src/modules/rabbitmq/utils.c
@@ -102,9 +102,6 @@ int log_on_amqp_error(amqp_rpc_reply_t x, char const *context)
 			LM_ERR("%s: unknown reply type 0x%08X\n", context, x.reply_type);
 			return x.reply_type;
 	}
-
-	LM_ERR("%s: unknown reply type, method id 0x%08X - should not reach here!\n", context, x.reply_type);
-	return x.reply_type;
 }
 
 static void dump_row(long count, int numinrow, int *chs)




More information about the sr-dev mailing list