diff options
author | Stefan Beller <sbeller@google.com> | 2016-04-27 14:30:39 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-28 09:56:14 -0700 |
commit | 270cd9eaf459b94dee1836de9bf4382afebe1d7b (patch) | |
tree | 16154163ef8137ff4674bfbbaa009542e1ee7064 /config.c | |
parent | 9c60d9faab43f73166d4cebb7c86b1bbf8d8df4b (diff) | |
download | git-270cd9eaf459b94dee1836de9bf4382afebe1d7b.tar.gz |
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>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -1309,14 +1309,11 @@ static struct config_set_element *configset_find_element(struct config_set *cs, struct config_set_element k; struct config_set_element *found_entry; char *normalized_key; - int ret; /* * `key` may come from the user, so normalize it before using it * for querying entries from the hashmap. */ - ret = git_config_parse_key(key, &normalized_key, NULL); - - if (ret) + if (git_config_parse_key(key, &normalized_key, NULL)) return NULL; hashmap_entry_init(&k, strhash(normalized_key)); |