Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
cache_tree_find(): remove redundant check
[gitweb.git]
/
cache-tree.c
diff --git
a/cache-tree.c
b/cache-tree.c
index 408ee57a5070d9ec307723cb17493fceb9b4b28b..39ad8c99418b163857611c2de69b029abadb6237 100644
(file)
--- a/
cache-tree.c
+++ b/
cache-tree.c
@@
-563,7
+563,7
@@
static struct cache_tree *cache_tree_find(struct cache_tree *it, const char *pat
if (!sub)
return NULL;
it = sub->cache_tree;
- while (*slash
&& *slash
== '/')
+ while (*slash == '/')
slash++;
if (!*slash)
return it; /* prefix ended with slashes */