Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2006-08-15 00:34:16 +0400
committerJunio C Hamano <junkio@cox.net>2006-08-15 05:38:07 +0400
commit8c0b2bb636c15a1cd0adb8bcf3b42497d699c884 (patch)
tree1644c15ba82e05e44b173402562956e42184a2b5
parent9e0ec82cac84e6963d7e4aa229b7464daaed4ef8 (diff)
diff.c cleanup
Removes conditional return. Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rw-r--r--diff.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/diff.c b/diff.c
index 8861b853e7..2327e6065b 100644
--- a/diff.c
+++ b/diff.c
@@ -904,9 +904,7 @@ static int mmfile_is_binary(mmfile_t *mf)
long sz = mf->size;
if (FIRST_FEW_BYTES < sz)
sz = FIRST_FEW_BYTES;
- if (memchr(mf->ptr, 0, sz))
- return 1;
- return 0;
+ return !!memchr(mf->ptr, 0, sz);
}
static void builtin_diff(const char *name_a,