[PATCH 01/28] blame.c return cleanup

From: David Rientjes <rientjes@google.com>
Date: 2006-08-15 06:18:11
Removes conditional from return

		David

Signed-off-by: David Rientjes <rientjes@google.com>
---
 blame.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/blame.c b/blame.c
index 7099b53..54a43d5 100644
--- a/blame.c
+++ b/blame.c
@@ -351,10 +351,7 @@ static int fill_util_info(struct commit 
 	assert(util);
 	assert(util->pathname);
 
-	if (get_blob_sha1(commit->tree, util->pathname, util->sha1))
-		return 1;
-	else
-		return 0;
+	return !!get_blob_sha1(commit->tree, util->pathname, util->sha1);
 }
 
 static void alloc_line_map(struct commit *commit)
-- 
1.4.2.g89bb-dirty

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Tue Aug 15 06:18:34 2006

This archive was generated by hypermail 2.1.8 : 2006-08-15 06:24:21 EST