Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
config.c: drop local variable
author
Stefan Beller
<sbeller@google.com>
Wed, 27 Apr 2016 21:30:39 +0000
(14:30 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 28 Apr 2016 16:56:14 +0000
(09:56 -0700)
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>
config.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
9c60d9f
)
diff --git
a/config.c
b/config.c
index 03544e7a3f68f858e2fed5492a4460bd05b75602..84e437a9b971025957675218e3486442ba14fdd2 100644
(file)
--- a/
config.c
+++ b/
config.c
@@
-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));