aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--refs/files-backend.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c
index a9ca003ba..d56fc1516 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -1387,7 +1387,7 @@ static int resolve_gitlink_ref_recursive(struct ref_cache *refs,
int resolve_gitlink_ref(const char *path, const char *refname, unsigned char *sha1)
{
- int len = strlen(path), retval;
+ int len = strlen(path);
struct strbuf submodule = STRBUF_INIT;
struct ref_cache *refs;
@@ -1404,8 +1404,7 @@ int resolve_gitlink_ref(const char *path, const char *refname, unsigned char *sh
}
strbuf_release(&submodule);
- retval = resolve_gitlink_ref_recursive(refs, refname, sha1, 0);
- return retval;
+ return resolve_gitlink_ref_recursive(refs, refname, sha1, 0);
}
/*