config.c: drop local variable
As `ret` is not used for anything except determining an early return, we don't need a variable for that. Drop it. Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stefan Beller committed
Apr 27, 2016 at 14:30 UTC
270cd9eaf459b94dee1836de9bf4382afebe1d7b
1 file changed
+1
-4
config.c
+1
-4
@@ -1309,14 +1309,11 @@ static struct config_set_element *configset_find_element(struct config_set *cs,
1309
struct config_set_element k;
1310
struct config_set_element *found_entry;
1311
char *normalized_key;
1312
- int ret;
1312
/*
1313
* `key` may come from the user, so normalize it before using it
1314
* for querying entries from the hashmap.
1315
*/
1317
- ret = git_config_parse_key(key, &normalized_key, NULL);
1318
-
1319
- if (ret)
1316
+ if (git_config_parse_key(key, &normalized_key, NULL))
1317
return NULL;
1318
1319
hashmap_entry_init(&k, strhash(normalized_key));