Browse code

janssonrpcc: Remove unused variable and redundant assignment

Alex Hermann authored on 19/10/2020 10:09:03
Showing 1 changed files
... ...
@@ -44,7 +44,6 @@ int jsonrpc_request(struct sip_msg* _m,
44 44
 	str params;
45 45
 	str options;
46 46
 	str route;
47
-	param_hooks_t phooks;
48 47
 	param_t* pit=NULL;
49 48
 	param_t* freeme=NULL;
50 49
 	int retry;
... ...
@@ -85,7 +84,7 @@ int jsonrpc_request(struct sip_msg* _m,
85 84
 			options.len--;
86 85
 		}
87 86
 
88
-		if (parse_params(&options, CLASS_ANY, &phooks, &pit)<0) {
87
+		if (parse_params(&options, CLASS_ANY, NULL, &pit)<0) {
89 88
 			ERR("failed parsing params value\n");
90 89
 			return -1;
91 90
 		}
... ...
@@ -123,8 +122,6 @@ skip_parse:
123 122
 		goto end;
124 123
 	}
125 124
 
126
-	retval = 0;
127
-
128 125
 	retval = mod_jsonrpc_request(
129 126
 		_m,                     /* sip_msg */
130 127
 		conn,                   /* connection group */