From: Pierre Habouzit Date: Thu, 7 Jun 2007 20:44:59 +0000 (+0200) Subject: Active_nr is unsigned, hence can't be < 0 X-Git-Tag: v1.5.3-rc0~144 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e1944f4074f845e4dd15fb77856b4463f51c7d81;p=git.git Active_nr is unsigned, hence can't be < 0 Signed-off-by: Pierre Habouzit Signed-off-by: Junio C Hamano --- diff --git a/sha1_name.c b/sha1_name.c index 7df01af78..858f08c34 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;