summaryrefslogtreecommitdiff
path: root/refs/files-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'refs/files-backend.c')
-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 a9ca003bae..d56fc15163 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);
}
/*