[PATCH] cache_tree_find(): remove redundant check in while condition
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
---
A trivial little cleanup.
cache-tree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cache-tree.c b/cache-tree.c
index 0bbec43..7f63c23 100644
--- a/cache-tree.c
+++ b/cache-tree.c
@@ -565,7 +565,7 @@ static struct cache_tree *cache_tree_find(struct cache_tree *it, const char *pat
return NULL;
it = sub->cache_tree;
if (slash)
- while (*slash && *slash == '/')
+ while (*slash == '/')
slash++;
if (!slash || !*slash)
return it; /* prefix ended with slashes */
--
1.9.0