git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Active_nr is unsigned, hence can't be < 0
@ 2007-06-07 20:44 Pierre Habouzit
  2007-06-07 20:45 ` [PATCH] Missing statics Pierre Habouzit
  0 siblings, 1 reply; 2+ messages in thread
From: Pierre Habouzit @ 2007-06-07 20:44 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Pierre Habouzit

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
---
 sha1_name.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/sha1_name.c b/sha1_name.c
index 7df01af..858f08c 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -682,8 +682,6 @@ int get_sha1_with_mode(const char *name, unsigned char *sha1, unsigned *mode)
 		namelen = namelen - (cp - name);
 		if (!active_cache)
 			read_cache();
-		if (active_nr < 0)
-			return -1;
 		pos = cache_name_pos(cp, namelen);
 		if (pos < 0)
 			pos = -pos - 1;
-- 
1.5.2.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-07 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-07 20:44 [PATCH] Active_nr is unsigned, hence can't be < 0 Pierre Habouzit
2007-06-07 20:45 ` [PATCH] Missing statics Pierre Habouzit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).